[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Talarm() problem



I think that checking for the timeout having expired before calling
canceltimeout would be safer than not freeing the timeout structure,
since the "sticky" timeout structure could lead to memory leaks if
canceltimeout() is never called.

Another work around might be providing some kind of magic numbers in
the timeout structure, so that canceltimeout() could be sure that it
was cancelling the correct timeout.