each thread has a list of locks it owns and each lock has its own effective priority associated with it
fixed compilication errors
fixed more compilication errors
fixed even more compilication errors
resolved prototype and random pointer errors
cleaning up
fixed compilation errors