Using setitimer multiple times - Xwindows
This is a discussion on Using setitimer multiple times - Xwindows ; Hi,
How to have multiple timer using setitimer. Once the SIG_IGN signal
is sent the timer stops....
-
Using setitimer multiple times
Hi,
How to have multiple timer using setitimer. Once the SIG_IGN signal
is sent the timer stops.
-
Re: Using setitimer multiple times
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Anjina Murthy wrote:
> Hi,
>
> How to have multiple timer using setitimer. Once the SIG_IGN signal
> is sent the timer stops.
[snip]
I'm sorry, but this forum can't help you.
You see, the comp.windows.x forum is for the discussion of the X network
protocol, and the graphical windowing environments that use it. This
forum has nothing to do with timers or the settimer function.
Your question has nothing to do with X, and probably should be asked in
a different newsgroup.
I'm sorry,
PS:
a) the timer doesn't stop with SIG_IGN. SIG_IGN says that you are going
to /ignore/ any further results from the timer.
b) the trick is to keep a list of differences, and reset the timer
accordingly when it pops. For instance, if you want two alerts,
one in 30 seconds, and one in 55 seconds, you don't set two timers.
Instead, you first set the timer for 30 seconds, and when it pops,
you reset it for 55-30 = 25 seconds. Thus, the second timer pop
occurs 30 + 25 = 55 seconds after the initial (30 second) request.
- --
Lew Pitcher, IT Consultant, Enterprise Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFApMDNagVFX4UWr64RAgf7AKDzrNYWafmFG4ZjeFmNQA of3ceD9ACgqKK1
O2Eghw/lECdEYI6J7xwP32g=
=3Vlk
-----END PGP SIGNATURE-----
-
Re: Using setitimer multiple times
When i reset the first timer function will stop , but i want it to
continue and the second timer function should also continue.
Lew Pitcher wrote in message news:...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Anjina Murthy wrote:
> > Hi,
> >
> > How to have multiple timer using setitimer. Once the SIG_IGN signal
> > is sent the timer stops.
> [snip]
>
> I'm sorry, but this forum can't help you.
>
> You see, the comp.windows.x forum is for the discussion of the X network
> protocol, and the graphical windowing environments that use it. This
> forum has nothing to do with timers or the settimer function.
>
> Your question has nothing to do with X, and probably should be asked in
> a different newsgroup.
>
> I'm sorry,
>
>
> PS:
> a) the timer doesn't stop with SIG_IGN. SIG_IGN says that you are going
> to /ignore/ any further results from the timer.
>
> b) the trick is to keep a list of differences, and reset the timer
> accordingly when it pops. For instance, if you want two alerts,
> one in 30 seconds, and one in 55 seconds, you don't set two timers.
> Instead, you first set the timer for 30 seconds, and when it pops,
> you reset it for 55-30 = 25 seconds. Thus, the second timer pop
> occurs 30 + 25 = 55 seconds after the initial (30 second) request.
>
> - --
>
> Lew Pitcher, IT Consultant, Enterprise Application Architecture
> Enterprise Technology Solutions, TD Bank Financial Group
>
> (Opinions expressed here are my own, not my employer's)
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (MingW32)
>
> iD8DBQFApMDNagVFX4UWr64RAgf7AKDzrNYWafmFG4ZjeFmNQA of3ceD9ACgqKK1
> O2Eghw/lECdEYI6J7xwP32g=
> =3Vlk
> -----END PGP SIGNATURE-----