PerformanC / CPools

Light-weight pool library for C89+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Light-weight pool library for C89+

License:BSD 2-Clause "Simplified" License


Languages

Language:C 98.5%Language:Makefile 1.5%