Sha256: 1bb4000b2c49f32e8d9ab494014811a5cfa5c0340519ce8e834f7ffaedda81c4
Contents?: true
Size: 824 Bytes
Versions: 1
Compression:
Stored size: 824 Bytes
Contents
# posix-mqueue Minimal wrapper around the [POSIX message queue](pmq). The POSIX message queue offers: * Persistence. Push messages while nothing is listening. * Simplicity. Nothing to set up. Built into Linux. * IPC. Blazingly fast communication between processes on the same machine. * Blocking and non-blocking. Listeners block until a message arrives on the queue. No polling. Sending messages doesn't block. Add `gem 'posix-mqueue'` to your favorite Gemfile. Still WIP. Not stable. Not everything works as promised. ## Usage ```ruby m = POSIX::Mqueue.new("/whatever") m.send "hello" puts m.receive # => "hello" fork { POSIX::Mqueue.new("/whatever").send("world") } # Blocks until the forked process pushes to the queue m.receive # => "world" ``` [pmq]: http://man7.org/linux/man-pages/man7/mq_overview.7.html
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
posix-mqueue-0.0.2 | README.md |