Mutex class
- add conf.gem line to
build_config.rb
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :github => 'matsumoto-r/mruby-mutex'
end
m = Mutex.new
# for global
# m = Mutex.new :global => true
m.lock
# critical section
m.unlock
under the MIT License:
- see LICENSE file