MrSinho / shthreads

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

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

License:MIT License


Languages

Language:C 88.2%Language:CMake 8.5%Language:Shell 1.7%Language:Batchfile 1.5%