You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I am using multiple
ThreadPool
s 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 theThreadPool::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.
The text was updated successfully, but these errors were encountered: