我创建了一个自定义的ThreadPool,它使用_beginthreadex()启动许多win32线程。线程正在运行一个简单的循环,试图从阻塞队列中取出任务,但有时我需要停止线程,如果它们在Dequeue上被阻塞,那么我不知道如何获取线程脱离阻塞状态。voidThreadPool::Loop(){while(_running){try{//Attemptstodequeueataskandrunit_taskQueue.Dequeue()->Run();}catch(BlockingQueueTerminate&){//Eattheexceptionandchecktherunning