[libdispatch-dev] Canceling/releasing a suspended timer

Kevin Wojniak kainjow at kainjow.com
Tue Dec 14 15:33:37 PST 2010

It appears that releasing a suspended timer is not allowed and will crash. Also, canceling the suspended timer does not appear to work and call the cancel handler. Are these correct assumptions? If so, then if I have a suspended timer, is the proper way to cancel or release it is to first resume? However I would imagine there is still the off chance that the timer could fire in between those calls to resume and cancel, requiring a flag to be set.


More information about the libdispatch-dev mailing list