Register thread with pjlib