mutex_m.rb

Path: lib/mutex_m.rb
Last Update: Thu Dec 22 15:16:25 +0000 2016

Usage

Extend an object and use it like a Mutex object:

  require "mutex_m.rb"
  obj = Object.new
  obj.extend Mutex_m
  # ...

Or, include Mutex_m in a class to have its instances behave like a Mutex object:

  class Foo
    include Mutex_m
    # ...
  end

  obj = Foo.new

[Validate]