Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

threads.h File Reference

Some functions to handle a thread pool uses static data structures, NOT thread safe (should be??). More...

Go to the source code of this file.

Functions

void thread_init (int n)
 initialize static thread variables, called in main()

void thread_die (pthread_t t)
 a threads says: "I'll die soon, you can wait for me"

void thread_clean ()
 cleans all dead threads

void thread_get_free (pthread_t **t, pthread_attr_t **a)
 gets a brand new thread from the pool

void thread_notborn (pthread_t *t)
 undo thread_get_free


Detailed Description

Some functions to handle a thread pool uses static data structures, NOT thread safe (should be??).

Author:
Enrico Tassi   <sorry guy>

Definition in file threads.h.


Function Documentation

void thread_clean  ) 
 

cleans all dead threads

void thread_die pthread_t  t  ) 
 

a threads says: "I'll die soon, you can wait for me"

void thread_get_free pthread_t **  t,
pthread_attr_t **  a
 

gets a brand new thread from the pool

void thread_init int  n  ) 
 

initialize static thread variables, called in main()

void thread_notborn pthread_t *  t  ) 
 

undo thread_get_free


Generated on Wed May 5 15:48:04 2004 for LiberoPOPs by doxygen 1.3.6-20040222