On Mon, Jul 30, 2001 at 03:28:45PM -0400, Steven W. Orr wrote:
> Lots of ways to flay that feline. Look at setitimer and getitimer.
> 
> Also, for really crude stuff, look at the alarm system call.  You can use
> it by maybe setting your timer for something in the decade range and then
> calling alarm whenever you want. The return will give you the time
> remaining.

Alas, if only it were that easy.  8)

For starters, I'm in the middle of multithreading the app.  setitimer 
and getitimer are far from threadsafe (if only because of their use
of the alarm call).

Secondly, I'm looking for something that I can poll, not a single
timer.  

Thanks for the suggestion though.

-- 
I haven't lost my mind!  It's backed up on disk somewhere...

Cole Tuininga
Network Admin
Code Energy, Inc
[EMAIL PROTECTED]
(603) 766-2208
PGP Key ID: 0x43E5755D



**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to