/shthreads

A simple Windows and Unix threading library using the win32 api and posix, written in C.

Primary LanguageCMIT LicenseMIT

shthreads

linux_build windows-build

A simple Windows and Unix threading library using the win32 api and posix, written in C.

Features

  • Threads handling
  • Mutex synchronization

Build

Tested with gcc and MSVC. The project files and Makefiles 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.

Example code

To build the samples, set on the cmake option SH_THREADS_BUILD_SAMPLES.

See /samples/src/ to find some reference source code: