The foci of this repository are the thread.c and thread.h files. They simplify the creation and destruction of POSIX Threads.
Add thread.c
and thread.h
to your project, and add
-pthread flag to your compile
flags.
See the provided Makefile as a reference.
For development purposes, thread.c
depends on my
C_Logging library. By replacing all
calls to printError
in thread.c
, you can remove this dependency.