I often use 0 second timer events to put something onto the event queue in a friendly manner (ie. allow other items that were already there to be processed, and get to my 'new work' when it's fair to). Trying to set up a persistent 0 second timer doesn't work, though:
If tv.tv_sec or tv.tv_usec is any positive value, everything works as I expect, I get a persistent timer event. However, if they are both 0, the timer event fires once, but never again. Is this a known issue? - jsd |