在 2022-02-17 03:40, Jeremy Drake via Mingw-w64-public 写道:
Is this assertion failure a sign of a bug in winpthreads, or a sign of a bug in glib (such as releasing a lock that is not held, for instance)?
Releasing a lock that the calling thread does not own results in undefined behavior [1]. Returning `EPERM` here is recommended, but not required. I haven't looked into the source, though. It may be a winpthreads bug or a glib bug, or both.
[1] Issue 7, https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_rwlock_unlock.html -- Best regards, LIU Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
