Re: Waitable Timers



In addition - there is no need even to use named timers in one application.

--
Vladimir

"Kellie Fitton" <KELLIEFITTON@xxxxxxxxx> wrote in message
news:1134948390.480426.192880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> If you are using a timer in a single process application, then
> you doNot need to use the API OpenWaitableTimer(), this function
> is used in multiple processes application to open handles to the
> same timer object, also, the first parameter for this function is
> the desired access value which you have passed as a null.
>
> Here is how you should create your timer:
>
> CreateWaitableTimer()
> SetWaitableTimer()
> WaitForSingleObjectEx()
> CancelWaitableTimer()
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/openwaitabletimer.asp
>
> Hope these information helps,
>
> Kellie.
>


.



Relevant Pages

  • Re: regarding timeout/untimeout kernel functions
    ... > You could also use the kqueue/kevent functions to queue up an arbitrary ... > number of timer events in a single process. ... timer on a quantum which in turn calls into a timer list module I wrote, ...
    (freebsd-hackers)
  • Re: Interval timers on Fedora
    ... Would starting more than one interval timer in a single process confuse the signal system when delivering the SIGALRM to the receiving process? ... In other words, can I have a 10 second interval timer which when times out delivers a sigalrm to one function, and in the same process have a 1 second interval timer set to give a sigalrm to another function? ...
    (Fedora)
  • Re: Interval timers on Fedora
    ... Would starting more than one interval timer in a single process confuse the signal system when delivering the SIGALRM to the receiving process? ... In other words, can I have a 10 second interval timer which when times out delivers a sigalrm to one function, and in the same process have a 1 second interval timer set to give a sigalrm to another function? ...
    (Fedora)