Skip to content

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

License

Notifications You must be signed in to change notification settings

MrSinho/shthreads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks