9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Signal (Notes) handling
@ 2007-10-20  1:12 don bailey
  2007-10-20 13:17 ` erik quanstrom
  2007-10-20 14:08 ` Russ Cox
  0 siblings, 2 replies; 3+ messages in thread
From: don bailey @ 2007-10-20  1:12 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

-----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-----


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-20 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-20  1:12 [9fans] Signal (Notes) handling don bailey
2007-10-20 13:17 ` erik quanstrom
2007-10-20 14:08 ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).