register

fnbool register(string name, Tid tid)

Associates name with tid.

Associates name with tid in a process-local map. When the thread represented by tid terminates, any names associated with it will be automatically unregistered.

Parameters

nameThe name to associate with tid.
tidThe tid register by name.

Returns

true if the name is available and tid is not known to represent a

defunct thread.