/*
* call-seq:
* 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.
*
* This does not guarantee non-blocking behavior, the message queue must
* be made non-blocking before calling this method.
*/
static VALUE tryreceive(int argc, VALUE *argv, VALUE self)
{
return _receive(PMQ_WANTARRAY|PMQ_TRY, argc, argv, self);
}