From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <471955F3.9040900@gmail.com> Date: Fri, 19 Oct 2007 19:12:19 -0600 From: don bailey User-Agent: Thunderbird 2.0.0.6 (X11/20070816) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [9fans] Signal (Notes) handling Topicbox-Message-UUID: d4dbcd2e-ead2-11e9-9d60-3106f5b1d025 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ok, so, in a normal multi-threaded program on any POSIX capable system I would normally: 1) block all signals 2) spawn a thread whose only job is to process signals a) sigtimedwait() on desired signals b) process signals as "events" other threads can "see" 3) other threads retrieve "events" from the signal thread at their convenience With the Notes API being substantially weaker. How does one go about creating a proper multi-threaded application on Plan 9 with robust Note processing akin to the above POSIX method? Is there a way to block all notes and wait() until the desired time to catch all Notes? Don -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHGVXxyWX0NBMJYAcRAgIfAJ41zg+kXjkzJ5G4aE+fJsWGZfOkQgCgm5Hq O3qfJbkE0QeZr84pTU4KqLY= =KtjS -----END PGP SIGNATURE-----