title: Condition Variable alternatives (c/c++ on windows xp)
body: <p>I want to write a thread which runs tasks from an unlimited-size container of tasks.</p>
  
  <p>While the task-list is empty the thread trying to get a task should be blocked.</p>
  
  <p>Coming from Linux I wanted to use condition variable which will be signaled on task adding and will be waited while the list is empty.</p>
  
  <p>I found that CONDITION_VARIABLE is available only from windows Vista, so this is out of question.
  Semaphores are problematic too due to the unlimited-size restriction.</p>
  
  <p>Is there any apropriate subtitution?</p>
  
  <p>Thanks</p>