在 2026-9-30 11:36, Kirill Makurin 写道:
LIU Hao wrote:> These patches look mostly fine, with only a trivial issue: > > Does `mutex->State` have to be updated with an interlocked function? Looks like that it can only changed > while the kernel mutex object has been locked, so it can be updated with plain assignment.The only function that may update it without owning the mutex is `pthread_mutex_consistent` (POSIX does not require calling thread to own the mutex), when it is set to `Inconsistent`. If you think it's ok to use plain assignment elsewhere, I have no objections to that.
Yes, but there's also
if (likely (*state != Unrecoverable)) {
*state = Inconsistent;
}
I'll try changing those to plain assignments.
--
Best regards,
LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
