implement EventQueueThreadPool.