GetThreadGroupID
Returns the ID of the current thread group
#include <nwthread.h> int GetThreadGroupID (void);
This function returns the ID of the current thread group.
Ordinarily, the current thread group is the thread group that the currently running thread belongs to. The current thread group identifies which thread group’s current connection, current task, current screen, and so on is active. (See Section 1.4, Context and Thread Groups.)