Closed thrimbor closed 3 years ago
It looks like nobody except me has looked at this yet, but I'd really like to merge this soon, because I have other stuff that relies on it and it fixes some actual issues in C11 / Win32 compatibility.
Code changes look good, test program builds and runs as expected.
This is a rewrite of the C11 threads and TSS implementation, basing it on the Win32 implementation. This ensures cross-compatibility, where before it was not possible to use C11 TSS in Win32 threads or vice-versa. I've recently worked on removing the use of implicit TLS in nxdk itself, which requires these changes to have C11 threads still work.
I've hacked a quick test together to show that TSS still works: https://gist.github.com/thrimbor/014267da6a1c815b2e89bc00c694ba82