diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-23 15:26:40 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-23 16:08:09 -0800 |
commit | 1fdd73c1d006cf96fd7955f171df70ad5d0fe896 (patch) | |
tree | 9e0710f34253b63f7d227dbdbfbf9c364a0eea8c /lib | |
parent | 0d3f4d41cedc59c4b3cf000f0e05bc1245be8ad3 (diff) | |
download | ruby_posix_mq-1fdd73c1d006cf96fd7955f171df70ad5d0fe896.tar.gz |
POSIX_MQ#notify(&block) mostly sucks.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/posix_mq.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 <ruby.posix.mq@librelist.com> + # + # 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" |