lkml.org 
[lkml]   [2001]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectWaitForSingleObject in linux????..
Date
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
azad
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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