diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-27 11:27:51 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-27 11:27:51 +0000 |
commit | 316a435ff6c5b1bd9e0298aee096d16fb015405d (patch) | |
tree | 5d1637c4ab1291d9602c10854775a36eb56f3b57 /ext/posix_mq | |
parent | 330846614470a64f34b671852ce4bf0f789aeb62 (diff) | |
download | ruby_posix_mq-316a435ff6c5b1bd9e0298aee096d16fb015405d.tar.gz |
But they'll be pushed to the site for greater visibility.
Diffstat (limited to 'ext/posix_mq')
-rw-r--r-- | ext/posix_mq/posix_mq.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c index b4b1678..1463f2f 100644 --- a/ext/posix_mq/posix_mq.c +++ b/ext/posix_mq/posix_mq.c @@ -996,10 +996,14 @@ static VALUE tryinit(int argc, VALUE *argv, VALUE self) * mq.trysend(string [,priority[, timeout]]) => +true+ or +false+ * * Exactly like POSIX_MQ#send, except it returns +false+ instead of raising - * +Errno::EAGAIN+ when non-blocking operation is desired and returns +true+ + * Errno::EAGAIN when non-blocking operation is desired and returns +true+ * on success instead of +nil+. + * * This does not guarantee non-blocking behavior, the message queue must * be made non-blocking before calling this method. + * + * This interface first appeared 0.8.0pre and is not yet final, + * please email ruby.posix.mq@librelist.org to discuss. */ static VALUE trysend(int argc, VALUE *argv, VALUE self) { @@ -1011,10 +1015,13 @@ static VALUE trysend(int argc, VALUE *argv, VALUE self) * mq.tryshift([buffer [, timeout]]) => message or nil * * Exactly like POSIX_MQ#shift, except it returns +nil+ instead of raising - * +Errno::EAGAIN+ when non-blocking operation is desired. + * Errno::EAGAIN when non-blocking operation is desired. * * This does not guarantee non-blocking behavior, the message queue must * be made non-blocking before calling this method. + * + * This interface first appeared 0.8.0pre and is not yet final, + * please email ruby.posix.mq@librelist.org to discuss. */ static VALUE tryshift(int argc, VALUE *argv, VALUE self) { @@ -1026,10 +1033,13 @@ static VALUE tryshift(int argc, VALUE *argv, VALUE self) * mq.tryreceive([buffer [, timeout]]) => [ message, priority ] or nil * * Exactly like POSIX_MQ#receive, except it returns +nil+ instead of raising - * +Errno::EAGAIN+ when non-blocking operation is desired. + * Errno::EAGAIN when non-blocking operation is desired. * * This does not guarantee non-blocking behavior, the message queue must * be made non-blocking before calling this method. + * + * This interface first appeared 0.8.0pre and is not yet final, + * please email ruby.posix.mq@librelist.org to discuss. */ static VALUE tryreceive(int argc, VALUE *argv, VALUE self) { |