[Mingw-w64-public] Fwd: [patch] Reimplement GNU threads library on native Windows

Eric Botcazou ebotcazou@adacore.com
Tue Jul 30 08:50:00 GMT 2019


> 0) complexifies comparison of thread IDs without obvious benefits, and

The reverse argument is also true: using IDs would complexify everything else 
with the only benefit of simplifying the equal primitive.

> 1) does not work reliably because handles can be duplicated, and

That's pure FUD.

> 2) makes `__gthread_self()` return invalid handles in detached threads.

Admittedly, but this can be fixed if this is deemed necessary by clearing the 
thread descriptor when detaching the thread.

-- 
Eric Botcazou



More information about the Libstdc++ mailing list