Some simple object oriented wrappers around pthreads primitives.