qt_team_parent_id - Man Page
returns the current team's parent's unique ID number
Synopsis
#include <qthread.h>
unsigned int
qt_team_id (void);
Description
This function returns the unique identifier associated with the parent team of the team to which the currently executing qthread belongs. Generally they are monotonically increasing values, but the value can wrap around after UINT_MAX-1 teams. Only subteams have parent teams (or parent subteams). If this function is called from a team without a parent, it will return QTHREAD_NON_TEAM_ID.
Return Value
On success, the thread's parent team's identifying number is returned. If called from outside the Qthreads library or from a parentless team, QTHREAD_NON_TEAM_ID is returned. The special value QTHREAD_NULL_TEAM_ID will never be returned.
See Also
Referenced By
NOVEMBER 2012 libqthread