[lkml]   [2001]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectWaitForSingleObject in linux????..
Hi all,

I am porting a NT driver and app into linux... Currently i am having a
problem in the application part... The scenario is as follows..

I have a function foo(param1, timeout)... what this function has to do is
wait for param1 to be set true.. ie wait for this varibale to be set till
the timeout expires.. so if the timeout expires before this varibale is set
it will retrun a TIMEDOUT return value... otherwise a success.... The value
of param1 is set by the driver.....(a async processing).

In NT this can be done with a single API call for waitForSingleObject....
how do i do this in LINUX.... Should i go for the timer?? ... or say
implement this via a thread and all??... any suggestion or pointers where to
look???? i would like to have a method which is efficient ie of less cpu
usage.. pls help...

thanks in advance
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:52    [W:0.039 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site