Skip to content
Discussion options

You must be logged in to vote

In short, yes:

https://github.com/DeveloperPaul123/thread-pool/blob/f14f97d84d2b861b710564ce712275ca43acad60/test/source/thread_pool.cpp#L317-L374

But it's a bit more complicated than that. You can easily do things incorrectly this way. The thread pool tries to ensure that it doesn't get stuck, but it's still possible to block as mentioned here: #57 (comment)

Also in the future, please open a discussion for questions instead of an issue.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ptsouchlos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #71 on August 29, 2024 13:30.