2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

common/pthreadstub.c File Reference


Detailed Description

pthread stubs [Sec. 5.17 (not in book)]

Definition in file pthreadstub.c.

Go to the source code of this file.

Functions

int pthread_mutex_lock (pthread_mutex_t *mutex)
int pthread_mutex_trylock (pthread_mutex_t *mutex)
int pthread_mutex_unlock (pthread_mutex_t *mutex)


Function Documentation

int pthread_mutex_lock pthread_mutex_t *  mutex  ) 
 

Description:
Lock mutex (Std. UNIX; see AUP2 Sec. 5.17.3)
Headers:
pthread.h
Returns:
0 on success, error number on failure
Parameters:
mutex  mutex to lock

Definition at line 24 of file pthreadstub.c.

Referenced by dequeue_event(), ec_mutex(), get_and_incr_x(), main(), queue_event(), sorter(), thread_fdset(), thread_func(), and uem_wait().

int pthread_mutex_trylock pthread_mutex_t *  mutex  ) 
 

Definition at line 29 of file pthreadstub.c.

int pthread_mutex_unlock pthread_mutex_t *  mutex  ) 
 

Description:
Unlock mutex (Std. UNIX; see AUP2 Sec. 5.17.3)
Headers:
pthread.h
Returns:
0 on success, error number on failure
Parameters:
mutex  mutex to unlock

Definition at line 34 of file pthreadstub.c.

Referenced by cleanup_handler(), dequeue_event(), ec_mutex(), get_and_incr_x(), main(), queue_event(), sorter(), thread_fdset(), thread_func(), and uem_wait().


Generated on Fri Apr 23 10:57:11 2004 for AUP2 Example Source by doxygen 1.3.1