ThreadPool icon indicating copy to clipboard operation
ThreadPool copied to clipboard

Thread stuck on condition.notify_one();

Open tdrz opened this issue 4 years ago • 0 comments

I am using multiple ThreadPools to process some messages. I have a ThreadPool that enqueues new tasks to another ThreadPool, basically cascading two ThreadPools.

Everything works fine in the beginning, but after a while one of the second ThreadPool's threads gets stuck on condition.notify_one(); inside the ThreadPool::enqueue method.

I have no clue what is going on. I thought that notify_one() should never block.

Unfortunately I cannot publish the code as it's a proprietary one.

tdrz avatar May 27 '21 17:05 tdrz