added mutex for ConsumeBuffersRandom()
Added thread end, pause, continue, waiting functions and thread state defines
added logic for pausing, ending, and setting current thread state in RunHook()
added EndAllThreads()
modified test according to interface changes in enThreadPool