missed the pointer creation for ptr to ptr of gtthread_t