Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/performanc/cpools
Light-weight pool library for C89+
https://github.com/performanc/cpools
c c89 cross-platform pool thread-pool
Last synced: 2 months ago
JSON representation
Light-weight pool library for C89+
- Host: GitHub
- URL: https://github.com/performanc/cpools
- Owner: PerformanC
- License: bsd-2-clause
- Created: 2023-02-04T20:21:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-02T23:45:30.000Z (10 months ago)
- Last Synced: 2024-10-13T17:21:42.561Z (3 months ago)
- Topics: c, c89, cross-platform, pool, thread-pool
- Language: C
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CPools
Fast and easy C89 thread pool library, using a [cross-platform threading library](https://github.com/PerformanC/CThreads).
## Features
- Cross-platform
- C89 compatible> [!NOTE]
> This library is experimental, may have bugs and may not work as expected.## Installation
### 1. Copy the files
Copy both cpools.h and cthreads.h to your project:
```bash
$ mv cpools.h /path/to/project/include/
$ mv cthreads.h /path/to/project/include/
```### 2. Include the files
To ensure your compiler can find the files, you must add the include directory to your compiler's include path.
```bash
$ gcc -I/path/to/project/include/ ...
```> [!NOTE]
> The flag may vary depending on your compiler.## Usage
An example of how to use CPools can be found in the [tests](tests) directory. Showing all the features of CPools.
## Documentation
We still don't have a documentation for CPools, but we are working on it.
## Support
Any question or issue related to CPools or other PerformanC projects can be can be made in [PerformanC's Discord server](https://discord.gg/uPveNfTuCJ).
For verified issues, please also create a GitHub issue for tracking the issue.
## Contributing
CPools follows the PerformanC's [contribution guidelines](https://github.com/PerformanC/contributing). It is necessary to follow the guidelines to contribute to CPools and other PerformanC projects.
## Projects using CPools
None yet
## License
CPools is licensed under [BSD 2-Clause License](LICENSE). You can read more about it on [Open Source Initiative](https://opensource.org/licenses/BSD-2-Clause).