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