Michel
Wed Jun 11 04:02:58 PDT 2008
There is no equivalent, you have to create the function yourself.
#define HZ 1000L // Windows CE timer frequency (1 ms timer)
#define USEC_PER_SEC 1000000L
static inline unsigned int jiffies_to_usecs(const unsigned long j)
{
#if HZ <= USEC_PER_SEC && !(USEC_PER_SEC % HZ)
return (USEC_PER_SEC / HZ) * j;
#elif HZ > USEC_PER_SEC && !(HZ % USEC_PER_SEC)
return (j + (HZ / USEC_PER_SEC) - 1)/(HZ / USEC_PER_SEC);
#else
return (j * USEC_PER_SEC) / HZ;
#endif
}
See also
http://www.google.co.nz/search?hl=en&defl=en&q=define:jiffy&sa=X&oi=glossary_definition&ct=title
By the way, I know NOTHING about Linux, I get this all off the web in
one simple search. Try to learn how to use Google, it'll be a lot faster
for you.
Good luck,
Michel Verhagen, eMVP
Check out my blog:
http://GuruCE.com/blog
GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.
pradeep wrote:
> On Jun 10, 4:34 pm, "Michel Verhagen (eMVP)" <mic...@nospam.box>
> wrote:
>> WaitForSingleObject(hEvent, timeout);
>>
>> Good luck,
>>
>> Michel Verhagen, eMVP
>> Check out my blog:
http://GuruCE.com/blog
>>
>> GuruCE Ltd.
>> Microsoft Embedded Partner
>>
http://GuruCE.com
>> Consultancy, training and development services.
>>
>> pradeep wrote:
>>> hi
>>> could anybody tell me wince equivalent of wait_event_timeout (this is
>>> in linux)
>>> thanks in advance
>
> thank for your help
> could you please tell me the wince equivalent of jiffies_to_usecs