On Mon, Apr 26, 2004 at 10:32:26PM +0100, Zefram wrote: > Joshua N Pritikin wrote: > >Because merely calling asynccheck never eliminates the race condition. > >It just makes it "shorter." > > It does eliminate the race condition, in that it makes ->pending return a > list of pending events that was correct at some point during ->pending's > execution. Also, the type of situation I've got in my program, blocking > signals, means that there is no race condition anyway -- no new signals > can arrive while ->pending is executing.
Hrm, what's wrong with calling Event::_queue_pending() directly before calling $watcher->pending()? Would that work for you? If so, maybe _queue_pending() should be documented? -- A new cognitive theory of emotion, http://openheartlogic.org
signature.asc
Description: Digital signature