__gthread_key_delete() and destructors
lhmouse opened this issue · 2 comments
lhmouse commented
According to this specification in POSIX 2013:
The
pthread_key_delete()
function shall be callable from within destructor functions. No destructor functions shall be invoked bypthread_key_delete()
. Any destructor function that may have been associated with key shall no longer be called upon thread exit.
This contradicts __gthread_key_delete()
in mcfgthread which preserves destructors deferred upon thread exit.
Neither the C11 standard nor the GNU documentation of __gthread_*
interfaces says a word about such behavior. Personally I refuse to regard POSIX crap. Nonetheless, any further discussion is welcome.
AntiMoron commented
bmjl.
lhmouse commented
Closed as no discussion was incoming. Please reopen this issue sometime, if necessary.