dg_pthread_group_equal(3T) DG/UX R4.11MU05 dg_pthread_group_equal(3T)
NAME
dgpthreadgroupequal - compare thread group IDs for equality
SYNOPSIS
#include <pthread.h>
int dgpthreadgroupequal(dgpthreadgroupt tg1,
dgpthreadgroupt tg2);
where:
tg1 Thread group ID #1
tg2 Thread group ID #2
DESCRIPTION
This function compares the thread group IDs tg1 and tg2 for equality.
In fact, this is the only supported way to compare two thread group
IDs.
DIAGNOSTICS
Returns
The dgpthreadgroupequal() function returns a non-zero value if tg1
and tg2 are equal; otherwise it returns zero.
If either tg1 or tg2 is not a valid thread group ID, the behavior is
undefined. In the current DG/UX implementation, this case is
impossible.
SEE ALSO
dgpthreadgroupcreate(3T), dgpthreadgroupdestroy(3T),
dgpthreadgroupself(3T), dgpthreadgroupgetlwpgroupid(3T).
NOTES
The only other supported operations on thread group IDs are
assignment and retrieval using a call to dgpthreadgroupself().
Refer to dgpthreadgroupself(3T) NOTES for a more detailed
discussion on proper use of thread group IDs.
Licensed material--property of copyright holder(s)