Most of the functions are wrappers around the pthread.h functions, but we are not allowed to include pthread.h.