Pelles C forum

Pelles C => General discussions => Topic started by: Kempelen on April 05, 2008, 01:31:42 PM

Title: _sleep
Post by: Kempelen on April 05, 2008, 01:31:42 PM
_sleep function cause the current thread to stop execution for seconds . Others compilers uses milliseconds instead. Is there any way to sleep for milliseconds in PellesC

Thx
FS
Title: Re: _sleep
Post by: severach on April 06, 2008, 07:39:07 PM
Look up Sleep() (http://msdn2.microsoft.com/en-us/library/ms686298(VS.85).aspx) on MSDN.
Title: Re: _sleep
Post by: keremg on April 30, 2008, 05:19:44 PM
Quote from: severach on April 06, 2008, 07:39:07 PM
Look up Sleep() (http://msdn2.microsoft.com/en-us/library/ms686298(VS.85).aspx) on MSDN.

He should also have a look at synchronization primitives and other functions like:

"SleepEx(...)"
"SuspendThread(...)"

maybe wait functions will help too like:

"WaitForSingleObject(...)"

and related,...


Regards

Kerem