EVENTS

1. Structure

struct event_data_t {
                        char *descr[MAXARG];                      /*event description*/
                         int arg;                                                 /*number of arguments*/
                         size_t size[MAXARG];                      /* array of arguments size */
                         type_t type[MAXARG];                    /* array of arguments type*/
                                  
                        }

2. Table of events

NB:  By defect in the function pthread_create new  thread will be  joignable, event EVT_THREAD_DETACH  will be signaled only if the thread is detached

EVENTS
ARGUMENTS
DESCRIPTION
EVT_THREAD_DETACH &thread, joinid
the thread is detached
EVT_THREAD_JOIN &thread, &pd the thread is waiting for thread pd
EVT_THREAD_STATE_DEAD &thread the thread is dead
EVT_THREAD_STATE_WAIT &thread the thread is blocked
EVT_THREAD_STATE_WAKE &thread the thread is running
EVT_THREAD_INIT &thread a thread has been created and becomes running
EVT_MUTEX_STATE_FREE &thread, &mutex, lock
the mutex is free
EVT_MUTEX_STATE_REQUIER &thread, &mutex, lock the mutex is requiered
EVT_MUTEX_STATE_TAKEN &thread, &mutex, lock the mutex has been taken
EVT_MUTEX_COUNT_DEC &thread, &mutex, count the recursive mutex has been freed one more time
EVT_MUTEX_COUNT_INC &thread, &mutex, count the recursive mutex has been taken one more time
EVT_MUTEX_OWNER_CHANGE &thread, &mutex, owner the owner has changed
EVT_MUTEX_INIT &thread, &mutex, owner, count the mutex has been initialized
EVT_MUTEX_DESTROY &thread, &mutex the mutex has been destroyed
EVT_BARRIER_LOCK_FREE &thread, &barrier, lock the barrier is free
EVT_BARRIER_LOCK_REQUIER &thread, &barrier, lock the barrier is requiered
EVT_BARRIER_LOCK_TAKEN &thread, &barrier, lock the barrier has been taken
EVT_BARRIER_LEFT_DEC &thread, &barrier, left a thread has  entered the barrier
EVT_BARRIER_LEFT_INC &thread, &barrier, left a thread has left the barrier
EVT_BARRIER_INIT &thread, &barrier,lock, left the barrier has been initialized
EVT_BARRIER_DESTROY &thread, &barrier the barrier has been destroyed
EVT_COND_LOCK_FREE &thread, &cond, lock the cond is free
EVT_COND_LOCK_REQUIER &thread, &cond, lock the cond is requiered
EVT_COND_LOCK_TAKEN &thread, &cond, lock the cond has been taken
EVT_COND_TOTAL_SEQ_INC &thread, &cond, total_seq one other thread is using the cond
EVT_COND_BROAD_SEQ_INC &thread, &cond, broadcast_seq a broadcast  happened
EVT_COND_MUTEX_FREE &thread, &cond, &mutex, mutex->lock the mutex is free
EVT_COND_MUTEX_REQUIER &thread, &cond, &mutex, mutex->lock the mutex is requiered
EVT_COND_MUTEX_TAKEN &thread, &cond, &mutex, mutex->lock the mutex has been taken
EVT_COND_INIT &thread, &cond, lock, total_seq, broadcast_seq, &mutex the cond has been initialized
EVT_COND_DESTROY &thread, &cond the cond has been destroyed



ARGUMENTS SIZE = sizeof(...)
&thread pointer
thread->joinid
pointer
&mutex pointer
mutex->lock int
mutex->count unsigned int
mutex->owner int
mutex->kind int
&barrier pointer
barrier->lock
int
barrier->left unsigned int
&cond pointer
cond->lock
int
cond->total_seq unsigned long long int
cond->broadcast_seq unsigned long long int
cond->mutex pointer



back to "index"