summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-01-09 22:52:27 +0000
committerEric Wong <normalperson@yhbt.net>2010-01-09 22:52:27 +0000
commit2e420820d3b3fb228c810937539f95a618a2c271 (patch)
tree2f0fb43894f4116224b7e7a9c8d50581901626fe
parent2c71257b2b95e737088726ffc963b4e72f1b5455 (diff)
This release adds a few new API methods, fixes MRI 1.8.6
support.  We should now have full feature parity with
underlying POSIX message queue C API.

* POSIX_MQ#notify(&block)
  RDoc: http://bogomips.org/ruby_posix_mq/POSIX_MQ.html#M000001
  This is only supported on platforms that implement
  SIGEV_THREAD with mq_notify(3) (tested with glibc + Linux).
  Other platforms will have to continue to rely on signal
  notifications via POSIX#notify=signal, or IO notifications
  in FreeBSD (and Linux).

* POSIX_MQ#shift([buffer [,timeout]])
  Shorthand for the common "POSIX_MQ#receive.first"
  when you do not care for priority of the received message.

Rev, EventMachine and Reactor support are planned for
Linux, FreeBSD and possibly any other platforms where POSIX
message queues are implemented with a file descriptor.
-rwxr-xr-xGIT-VERSION-GEN2
-rw-r--r--lib/posix_mq.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index e36125a..e1fc604 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v0.2.0.GIT
+DEF_VER=v0.3.0.GIT
 
 LF='
 '
diff --git a/lib/posix_mq.rb b/lib/posix_mq.rb
index 8897050..356a9f5 100644
--- a/lib/posix_mq.rb
+++ b/lib/posix_mq.rb
@@ -1,8 +1,8 @@
 # -*- encoding: binary -*-
 class POSIX_MQ
 
-  # version of POSIX_MQ, currently 0.1.0
-  VERSION = '0.2.0'
+  # version of POSIX_MQ, currently 0.3.0
+  VERSION = '0.3.0'
 
   # An analogous Struct to "struct mq_attr" in C.
   # This may be used in arguments for POSIX_MQ.new and