Add pthreadCallMethod