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

Simplify + cleanup running destructors #32

Closed ian-h-chamberlain closed 3 months ago

ian-h-chamberlain commented 4 months ago

Follow up to #31

We can keep the loop basically how it was before and avoid the extra Vec collection, as long as we drop the write lock before calling the destructor.

I think this code looks a bit cleaner/simpler too.