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

Add no-op pthread_atfork #17

Closed ian-h-chamberlain closed 2 years ago

ian-h-chamberlain commented 2 years ago

The rand crate uses this for implementing fork protection: https://github.com/rust-random/rand/blob/master/src/rngs/adapter/reseeding.rs#L321

As far as I know, there's no support for forking on 3ds, so just a no-op here (with success exit code) should be safe enough. We can always go back and implement it later if forking does become supported.

@AzureMarker @Meziu