Finish logic of ObjectPool, which is planed to be used as a thread pool.