Hello,
I am using ThreadManager on MSVC14 and this means that the StdThreadFactory
is the platform thread factory implementation.
It appears according to ThreadManager's code that it expects to be provided
with detached threads (it never tries to join them) and all the tests I
could find indeed provide it with a factory returning detached threads.
This results in idMap_ having only a single element, with a key of zero,
because that's the ID all the detached StdThreads return. (I think that's
not the case for the pthreads implementation) This in turn can potentially
result in a dead-lock.
My question is: am I mistaken in my assumption that ThreadManager should be
used with detached threads? Or is it a bug in interaction between
ThreadManager and StdThreadFactory and the issue should be raised on the
dev list?
Sincerely yours,
Evgeny