boostorg / thread

Boost.org thread module
http://boost.org/libs/thread
199 stars 161 forks source link

1.68 thread pool join do interruption #226

Closed ohhmm closed 6 years ago

ohhmm commented 6 years ago
screen shot 2018-08-04 at 11 05 44
viboes commented 6 years ago

What do you suggest as behavior?

ohhmm commented 6 years ago

Call thread::join is good, do not interrupt. If there is some need in interrupting then better to expose interrupt method. Optional timeout parameter for join may be used to make possible to join first.

viboes commented 6 years ago

Ok, I will add interrupt and join_and_interrupt.