added GetFromBuffer()
fixed missing namespace
changed scopes of various members to private, added GetTask(), added template parameters BufferType, ThreadType, TaskType
changed enThreadPool test according to changes in enThreadPool interface