- Inheritance
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
Methods
Class
Visibility | Signature |
---|---|
public | append_features (cl) |
public | define_aliases (cl) |
public | extend_object (obj) |
public | new (*args) |
Instance
Visibility | Signature |
---|---|
public | mu_extended () |
public | mu_lock () |
public | mu_locked? () |
public | mu_synchronize () {|| ...} |
public | mu_try_lock () |
public | mu_unlock () |
Class Method Detail
append_features(cl)
define_aliases(cl)
extend_object(obj)
new(*args)
Instance Method Detail
mu_extended()
mu_lock()
mu_locked?()
mu_synchronize() {|| ...}
locking