Skip to content

PerformanC/CPools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPools

Fast and easy C89 thread pool library, using a cross-platform threading library.

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:

$ 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.

$ 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 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.

For verified issues, please also create a GitHub issue for tracking the issue.

Contributing

CPools follows the PerformanC's contribution guidelines. 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. You can read more about it on Open Source Initiative.