Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Threads Library Functionspthread_equal(3THR)


NAME

 pthread_equal - compare thread IDs

SYNOPSIS

 
cc -mt [ flag... ] file... -lpthread [ -lrt library... ]
#include <pthread.h>
int pthread_equal(pthread_t t1, pthread_t t2);

DESCRIPTION

 

The pthread_equal() function compares the thread IDs t1 and t2.

RETURN VALUES

 

The pthread_equal() function returns a non-zero value if t1 and t2 are equal. Otherwise, 0 is returned.

If t1 or t2 is an invalid thread ID, the behavior is undefined.

ERRORS

 

No errors are defined.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

pthread_create(3THR), pthread_self(3THR), attributes(5)

NOTES

 

Solaris thread IDs do not require an equivalent function because the thread_t structure is an unsigned int.


SunOS 5.9Go To TopLast Changed 7 May 1998

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.