Subj : Re: pthreads: combine condvar and select To : comp.programming.threads From : Phil Frisbie, Jr. Date : Tue Jan 11 2005 09:59 pm Bernhard Roessmann wrote: > Hi, > > how can one combine pthreads passive waiting (e.g using a conditional > variable and pthread_cond_wait) select/poll waiting (filehandles) at > the same time? You can create a loop-back UDP socket and add it to the other file handles. Then a second thread simply sends a small (or even zero length) UDP packet to 'wake up' the first thread. > regards, > -- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com .