I have a loop where I want to wait for a condition and if the condition does not exist I want to turn control over the OS or some other process for a time.
while(!(GetDesiredCondition())
{
sleep(); // or wait() or yield() or WaitNextEvent()//
}
I am not currently using threads nor is this...