Re: pending signal events
[email protected] (Joshua N Pritikin) Thu, 29 Apr 2004 20:04:35 +0530
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
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
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAkRJ6qcqnlKSmC70RAlE5AKDWEaxQw0x1ofELLw1JWHRCH4QvYgCeIM/5 X2jq1GnSI2L0IkVW7J1OpH8= =4nkk -----END PGP SIGNATURE-----