rust3ds / pthread-3ds

PThread implementation for Nintendo 3DS Horizon OS targets. Keep in mind that Horizon OS uses a cooperative, and not preemptive, threading model.
Apache License 2.0
12 stars 7 forks source link

Make thread keys impl thread-safe and handle invalid keys #5

Closed AzureMarker closed 2 years ago

AzureMarker commented 2 years ago

We still don't actually run the destructors... Which could be fine, but we should probably run them somewhere.

I have a feeling we might also need to look at this though: https://github.com/devkitPro/libctru/blob/master/libctru/source/internal.h

Meziu commented 2 years ago

I have a feeling we might also need to look at this though: https://github.com/devkitPro/libctru/blob/master/libctru/source/internal.h

That basically returns a void pointer, and there is no User friendly function to set them, how is one supposed to read them? Still, even Rust3DS’s original efforts used a “new” implementation, I think we could get it to work normally.