Added ability to specify the instance of the class as the name space for
a thread pool.