在 2025-12-17 20:01, Pali Rohár 写道:
All memory access to pthread_spinlock_t memory is done via the
InterlockedExchangePointer() function which ensures atomicity and provide
memory barrier itself. So volatile should not be needed for variables.
---
  mingw-w64-libraries/winpthreads/src/spinlock.c | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)


Thanks for the patch. Pushed this now.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to