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. - Kirill Makurin _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
