Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matsumotory/mruby-mutex
mutex class for mruby
https://github.com/matsumotory/mruby-mutex
Last synced: about 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-08T07:08:49.000Z (over 7 years ago)
- Last Synced: 2024-10-18T18:24:32.856Z (3 months ago)
- Language: C
- Homepage:
- Size: 12.7 KB
- Stars: 7
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mruby-mutex [![Build Status](https://travis-ci.org/matsumotory/mruby-mutex.png?branch=master)](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