Availability:C-language interface function
int PL_unify_thread_id(term_t
t, int i)Unify t with the Prolog thread identifier for thread i.
Thread identifiers are normally returned from PL_thread_self().
Returns -1 if the thread does not exist or the unification fails.