today I noticed a strange think when using std::thread. This is minimal test case:
void test()
{
std::thread t1([] {});
t1.join();
}
Every time I run this code, one Handle leaked.
This is a view from ProcessExplorer. These leaked handles are thread mutexes "BaseNammedObjects\bx_thread_mutex"
These mutexes are not released anytime future. Is this some know issue?
I'm using latest Visual Studio 2019 16.7.3 and I'm testing it on 32bit app (debug and release too).
Edited:
Leaked handles are liner to number of execution, so this snippet:
for (int n = 0; n < 1000; n++)
{
std::thread t1([] {});
t1.join();
}


