From 1fdd73c1d006cf96fd7955f171df70ad5d0fe896 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 23 Feb 2011 15:26:40 -0800 Subject: [PATCH] doc: discourage the use of notify POSIX_MQ#notify(&block) mostly sucks. --- lib/posix_mq.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/posix_mq.rb b/lib/posix_mq.rb index 02a646d..f232baa 100644 --- a/lib/posix_mq.rb +++ b/lib/posix_mq.rb @@ -40,6 +40,11 @@ class POSIX_MQ # know of glibc + Linux supporting this. Please let us # know if your platform can support this functionality and # are willing to test for us + # + # As far as we can tell, this method is not very useful + # nor efficient. You would be better served using signals or + # just blocking. On Linux and FreeBSD, you can use POSIX_MQ + # with I/O multiplexing (IO.select, EventMachine), too. def notify(&block) block.arity == 1 or raise ArgumentError, "arity of notify block must be 1" -- 2.11.4.GIT