Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread stuck on condition.notify_one(); #85

Open
copiltembel opened this issue May 27, 2021 · 0 comments
Open

Thread stuck on condition.notify_one(); #85

copiltembel opened this issue May 27, 2021 · 0 comments

Comments

@copiltembel
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant