Re: How to suspend operation/threads in VC by Jack
Jack
Wed Jun 07 02:18:05 CDT 2006
Hi guys,
I'm emulating a sensor processor device,
a SBC is sending info to this device thru USB (telling it to get somethin'
off the sensors) ,
I want to suspend the thread for a while to get synchronous results. like
getting a bunch of data each 50ms.... Thanks
Jack
"Ulrich Eckhardt" <eckhardt@satorlaser.com>
???????:pkail3-aqv.ln1@satorlaser.homedns.org...
> Jack wrote:
>> stdlib.h
>>
>> sleep(10);
>>
>> to no avail.
>
> What was the problem? What happened, what did you expect to happen?
>
> Other than that, the win32 API has Sleep().
>
>> I need a resolution of millisec range
>
> Your OS can't guarantee such a resolution due to preemption, what are you
> trying to do?
>
> Uli
>