Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nubjs/libnub
C library that allows working with libuv handles off the main thread
https://github.com/nubjs/libnub
Last synced: 18 days ago
JSON representation
C library that allows working with libuv handles off the main thread
- Host: GitHub
- URL: https://github.com/nubjs/libnub
- Owner: nubjs
- License: mit
- Created: 2014-07-05T05:37:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-08T22:28:38.000Z (over 9 years ago)
- Last Synced: 2024-07-31T22:56:19.348Z (3 months ago)
- Language: C
- Size: 403 KB
- Stars: 22
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## Overview
libnub is a small wrapper around [libuv](https://github.com/libuv/libuv) to
make it possible to work with handles off the same thread running the event
loop. The API can be summarized in the following points:* Create/dispose of threads against a specific event loop.
* Push "work" to a child thread from the event loop thread.
* Introduce the "event loop mutex" which will halt execution of a child thread
until the event loop can be operated upon.## Documentation
Look at `include/nub.h`.
## Build Instructions
Building only currently works on Linux. Run the following:
```
mkdir out
./build.sh
cd out/
make
```Can also use `BUILDTYPE=Debug make` to perform the debug build.
## Tests
Currently in a sad state, but can run what currently exists by running
`out/{Debug,Release}/run-nub-tests`.