| Last Update: | Mon Jul 30 21:29:34 -0600 2007 |
Interface for Mutexes on MS Windows.
win32-ipc 0.5.0 or later
rake test (optional)
rake install
require 'win32/mutex'
# Do not leave out the 'Win32::', otherwise you're using Ruby's Mutex class.
Win32::Mutex.new(false, 'test') do |m|
# Do stuff
m.release
end
The mutex.rb file contains inline RDoc documentation. If you installed this file as a gem, then you have the docs.For an example of win32-mutex in action, look at the mutex_test.rb file in the 'examples' directory. You can also run the 'examples' rake task.
The Mutex class is a subclass of Win32::Ipc (win32-ipc). This package require's the win32-ipc package internally (you don't need to explicitly call it).
Originally adapted from the Win32::Mutex Perl module.
None that I know of. Please log any other bug reports on the RubyForge project page at http://www.rubyforge.net/projects/win32utils
Ruby's
(C) 2003-2007 Daniel J. Berger, All Rights Reserved
This package is provided "as is" and without any exblockquotess or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.
Daniel J. Berger
Park Heesob