在 2026-9-10 23:22, Kirill Makurin 写道:
Should we add similar fast paths for spinlocks? After spinlock changes in May, they always call `WaitForSingleObject` which means they suffer from the same syscall overhead. I mentioned in the past that some source files (barrier.c, rwlock.c) use file-global spinlock when accessing _any_ object, so having fast paths could give noticeable performance improvement in some cases.


Yes; a spinlock is just a mutex.


--
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