https://github.com/rohanrhu/semserv
High-performance async semaphore service useable with long string ipc keys stored in memory.
https://github.com/rohanrhu/semserv
async inter-process-communication ipc semaphore service
Last synced: over 1 year ago
JSON representation
High-performance async semaphore service useable with long string ipc keys stored in memory.
- Host: GitHub
- URL: https://github.com/rohanrhu/semserv
- Owner: rohanrhu
- Created: 2015-07-10T23:06:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-14T19:01:06.000Z (over 9 years ago)
- Last Synced: 2025-03-19T03:43:53.679Z (over 1 year ago)
- Topics: async, inter-process-communication, ipc, semaphore, service
- Language: C
- Homepage:
- Size: 52.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# semserv
High-performance async semaphore service useable with long string ipc keys stored in memory.
#### Build
Compile and run semserv server with
`make && ./build/semserv`
#### Example
Run client with `node`
###### Client 1
```javascript
> require('test/test.js')
> semserv('key1', 1/*acquire*/)
```
###### Client 2
```javascript
> require('test/test.js')
> semserv('key1', 1)
> semserv('key1', 2/*release*/)
> semserv('key1', 2)
```
#### Contributing
Patches welcome.
(Node.js is good for playground.)
#### Todo
* PHP Adapter
* Node.js Adapter