[Mingw-w64-public] Fwd: [patch] Reimplement GNU threads library on native Windows
Eric Botcazou
ebotcazou@adacore.com
Tue Jul 2 09:19:00 GMT 2019
> It seems inappropriate to use handles as thread identifiers (as handles
> imply resource ownership and are not unique identifiers); thread IDs (as
> `DWORD` or `unsigned long`) would be a better alternative.
This was considered but ultimately rejected, as you can do nothing with a
thread Id, i.e. you need a handle for everything. But the __gthread_equal
routine does compare the Ids and not the handles.
--
Eric Botcazou
More information about the Gcc-patches
mailing list