Subj : Re: use of condition variables without pthread_cond_wait and ptread_cond_timedwait To : comp.programming.threads From : Joseph Seigh Date : Mon Jan 10 2005 09:10 am On Mon, 10 Jan 2005 14:41:05 +0100, Frank Pool wrote: > Hi, > > I have some existing code with a condition variable at file scope. > After every mutex lock and unlock, pthread_cond_signal is called. Does > this make sense if noone is waiting on the condition variable ? > I can''t find pthread_cond_wait or pthread_cond_timedwait in this > code. Can I remove the condition variable with a clear consience ? > File scope? Sure, you can remove it as long as the loading of other object files doesn't complain about not being able to resolve the condition variable symbol. Joe Seigh .