XboxDev / nxdk-pdclib

The Public Domain C Library (adapted for original Xbox / nxdk toolchain)
http://pdclib.rootdirectory.de
Creative Commons Zero v1.0 Universal
19 stars 9 forks source link

Add at_quick_exit() / quick_exit() #10

Closed thrimbor closed 5 years ago

thrimbor commented 5 years ago

This implements at_quick_exit() and quick_exit(). Both are C11 functions that are required by libc++.

No "xbox"-prefix for this commit since it's a generic implementation.

JayFoxRox commented 5 years ago

What are the plans for C11 adoption upstream? Would it make sense to send our code there (and then move it downstream)?

thrimbor commented 5 years ago

What are the plans for C11 adoption upstream? Would it make sense to send our code there (and then move it downstream)?

To my understanding upstream doesn't actively pursue C11 support atm, but is open to adding parts of it when requested.

I do actually plan to submit this upstream, too, but figured that merging it here would be the more quick way on the way to libc++ - rebasing to upstream if/when merged there could then happen together with a clean-up of the dlmalloc-changes.

thrimbor commented 5 years ago

The submitted functionality has been implemented upstream. I'm closing this in favor of an update-PR I plan to submit soon, so we can benefit from the additional improvements made upstream.