SAM function SAM-My-pthreadid()

From SoOS

Jump to: navigation, search

Contents

[edit] Name

SAM_ - get calling thread's pthread ID

[edit] Synopsis

#include <sam.h>
 
pthread_t SAM_My_pthreadid();

[edit] Description

The SAM_My_pthreadid() function returns the pthread_t ID of the calling thread. It is equivalent to calling pthread_self().

[edit] Return value

See DESCRIPTION above.

[edit] Errors

None.

[edit] Examples

None.

[edit] See also

SAM_My_type(), SAM_My_workid(), <sam.h>, <pthread.h>.