Can Pthreads wait for combinations of conditions?
> Is there any way in Pthreads to wait for boolean combinations of conditions > (i.e. wait for any one of a set of conditions or wait until all of a set of > conditions have occurred). I’m looking for a feature similar to the VMS > Wait for logical OR of event flags or the OS/2 multiplexed semaphores. You mean something like this: void *consumer(void *arg) {request_t *request; while(1) {pthread_mutex_lock(&requests_lock); while ((length == 0) && (!