Need portable threads for your C app? Is C11 unavailable for your target compiler(s)?
Then you need TinyCThread!
TinyCThread implements a fairly compatible subset of the C11 thread management functions.
- Open source!
- Very portable (designed to work under Windows, Mac OS X and Linux, and should work under most POSIX compatible systems).
- Fairly faithful to the C11 standard (see the April 2011 draft: N1570, chapter 7.26).
- Minimalistic (no external dependencies, and easy to include in a project).
For the latest stable release, please visit the TinyCThread releases page on GitHub.
For the latest bleeding edge, please clone the GitHub repository:
git clone https://github.com/tinycthread/tinycthread.git
TinyCThread tries to match the C11 standard, so the standard or any documentation describing it should apply to TinyCThread as well. Additionally, an API reference is available as part of TinyCThread.
The library is released under the zlib/libpng license, which makes it perfectly free to use for any application (including commercial applications).