Re: How to pause/continue itimer ?
Beesdeckar <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.kernel |
|---|---|
| Organization | Soft in Engines |
| Message-ID | <[email protected]> |
It seems that I found how to make it functional, zeroing both values pauses timer. For continuing timer I need to put back old values and call again getnanotime(&t.it_time.it_value); itimer_settime(&t); I hope that I am not doing something wrong.. On 11/29/25 13:11, Beesdeckar wrote: > I tried it, > zeroing both values pauses timer, > but putting back old values does not restore timer and handler is not > called. > > >> On Mon, 24 Nov 2025, Beesdeckar wrote: >> >>> My question are: >>> Does exist any way how to pause itimer >>> >> >> set `.tv_sec = .tv_nsec = 0;' to cancel the timer. >> >>> and after some time start it again ? >>> >> >> put back old values. >> >> -RVP >> > >