Search results

  1. W

    a function for use in a console application for sleeping for at least a selectable ti

    OK. Maybe I was wrong. Maybe the condition is relavent. I am waiting on a USB device to be present. Is select(2) still the function I want? What header do I include? Thanks, Wayne
  2. W

    a function for use in a console application for sleeping for at least a selectable ti

    The condition is not relevent (but it is waiting for a device to be available). What I want to do is wait but not hog 100% of the CPU while waiting.
  3. W

    a function for use in a console application for sleeping for at least a selectable ti

    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...
Back
Top