https://github.com/matsumotory/mruby-mutex
mutex class for mruby
https://github.com/matsumotory/mruby-mutex
Last synced: 2 months ago
JSON representation
mutex class for mruby
- Host: GitHub
- URL: https://github.com/matsumotory/mruby-mutex
- Owner: matsumotory
- License: other
- Created: 2015-06-02T07:39:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-08T07:08:49.000Z (about 8 years ago)
- Last Synced: 2025-03-30T14:23:59.503Z (3 months ago)
- Language: C
- Homepage:
- Size: 12.7 KB
- Stars: 6
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mruby-mutex [](https://travis-ci.org/matsumotory/mruby-mutex)
Mutex class
## install by mrbgems
- add conf.gem line to `build_config.rb````ruby
MRuby::Build.new do |conf|# ... (snip) ...
conf.gem :github => 'matsumoto-r/mruby-mutex'
end
```
## example
```ruby
m = Mutex.new
# for global
# m = Mutex.new :global => true
m.lock
# critical section
m.unlock
```## License
under the MIT License:
- see LICENSE file