Can this thread pool recursively add tasks? #72
-
like following one: |
Beta Was this translation helpful? Give feedback.
Answered by
DeveloperPaul123
Aug 29, 2024
Replies: 1 comment
-
In short, yes: thread-pool/test/source/thread_pool.cpp Lines 317 to 374 in f14f97d 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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
DeveloperPaul123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In short, yes:
thread-pool/test/source/thread_pool.cpp
Lines 317 to 374 in f14f97d