A simple Windows and Unix threading library using the win32 api and posix, written in C.
- Threads handling
- Mutex synchronization
Tested with gcc
and MSVC
. The project files and Makefile
s are generated with cmake:
git clone https://github.com/mrsinho/shthreads.git
cd shthreads
mkdir build && cd build
cmake .. -DSH_THREADS_BUILD_SAMPLES=ON
If you've encountered some errors while trying to build the code, check the linux
and windows
build logs.
To build the samples, set on the cmake option SH_THREADS_BUILD_SAMPLES
.
See /samples/src/
to find some reference source code: