October 29th, 2006, 11:19 PM
Join Date: Mar 2002
Time spent in forums: 2 Days 20 h 14 m 5 sec
Reputation Power: 12
I have a thread 'A' that tells other threads 'B' to start and then it waits for all other threads 'B' to finish.
static pthread_cond_t condStart = PTHREAD_COND_INITIALIZER;
static pthread_mutex_t mutexStart = PTHREAD_MUTEX_INITIALIZER;
static pthread_cond_t condFinish = PTHREAD_COND_INITIALIZER;
static pthread_mutex_t mutexFinish = PTHREAD_MUTEX_INITIALIZER;
in thread 'A'
in thread 'B'
Sometimes, even though threads 'B' signal condFinish, thread 'A' does not recieve it...
Anyone knows whats going on?
Thank you for any help.