0.01
No release in over 3 years
Low commit activity in last 3 years
The win32-mutex library provides an interface for creating mutex objects on MS Windows. A mutex object is a synchronization object whose state is set to signaled when it is not owned by any thread, and non-signaled when it is owned.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0.6.0
 Project Readme

win32-mutex

Gem Version

Interface for Mutexes on MS Windows.

Prerequisites

  • win32-ipc 0.6.0 or later

Installation

gem install win32-mutex

Synopsis

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

Documentation

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 example_win32_mutex.rb file in the 'examples' directory. You can also run the 'examples' rake task.

Notes

The Mutex class is a subclass of Win32::Ipc (win32-ipc). This library require's the win32-ipc library internally. You don't need to explicitly call it.

Acknowledgements

Originally adapted from the Win32::Mutex Perl module.

Known Bugs

None that I know of. Please log any other bug reports on the project page at https://github.com/chef/win32-mutex.

License

Artistic 2.0

Copyright

(C) 2003-2013 Daniel J. Berger, All Rights Reserved

Warranty

This package is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.

Authors

  • Daniel J. Berger
  • Park Heesob