title: Wakeup sleeping thread
body: <p>I'm using the nanosleep function in a multithreaded program. I'm having nanosleep act as a timer that should be able to be interrupted by another thread if a certain condition passes. I found on a website someone ask a similar question, and they said you can't wakeup from a sleep:
  <a href="http://www.codeguru.com/forum/archive/index.php/t-431651.html" rel="nofollow">http://www.codeguru.com/forum/archive/index.php/t-431651.html</a></p>
  
  <p>Is this true, or is it just with WinAPI (I'm programming in a UNIX environment)? </p>