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  

c5/tx4.c File Reference


Detailed Description

Thread example (mutex) [Sec. 5.17.3].

Definition in file tx4.c.

Go to the source code of this file.

Functions

long get_and_incr_x (long incr)
void * thread_func (void *arg)
int main (void)


Function Documentation

long get_and_incr_x long  incr  )  [static]
 

Definition at line 25 of file tx4.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_rv, exit(), pthread_mutex_lock(), and pthread_mutex_unlock().

Referenced by main(), and thread_func().

int main void   ) 
 

Definition at line 50 of file tx4.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_rv, get_and_incr_x(), pthread_create(), pthread_join(), sleep(), and thread_func().

void* thread_func void *  arg  )  [static]
 

Definition at line 41 of file tx4.c.

References get_and_incr_x(), and sleep().

Referenced by main().


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