Fast and easy C89 thread pool library, using a cross-platform threading library.
- Cross-platform
- C89 compatible
Note
This library is experimental, may have bugs and may not work as expected.
Copy both cpools.h and cthreads.h to your project:
$ mv cpools.h /path/to/project/include/
$ mv cthreads.h /path/to/project/include/
To ensure your compiler can find the files, you must add the include directory to your compiler's include path.
$ gcc -I/path/to/project/include/ ...
Note
The flag may vary depending on your compiler.
An example of how to use CPools can be found in the tests directory. Showing all the features of CPools.
We still don't have a documentation for CPools, but we are working on it.
Any question or issue related to CPools or other PerformanC projects can be can be made in PerformanC's Discord server.
For verified issues, please also create a GitHub issue for tracking the issue.
CPools follows the PerformanC's contribution guidelines. It is necessary to follow the guidelines to contribute to CPools and other PerformanC projects.
None yet
CPools is licensed under BSD 2-Clause License. You can read more about it on Open Source Initiative.