mutex class for mruby
C Ruby
Switch branches/tags
Nothing to show
Clone or download
Latest commit 032a068 May 8, 2017

README.md

mruby-mutex Build Status

Mutex class

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :github => 'matsumoto-r/mruby-mutex'
end

example

m = Mutex.new
# for global
# m = Mutex.new :global => true
m.lock
# critical section
m.unlock

License

under the MIT License:

  • see LICENSE file