News for hackers. Stuff that matters.
Re:Without the Futex, It's Futile by musjleman on Tuesday August 19, 2025 @01:19PM (#44953909)
SRW lock uses the WaitOnAddress primitives nowadays, not keyed events.
Re:Without the Futex, It's Futile by jstarks on Tuesday August 19, 2025 @03:31PM (#44955367)
Well, technically both WaitOnAddress and SRWLOCK use the same "wait/wake by thread ID" primitive. WaitOnAddress uses a hash table to store the thread ID to wake for an address, whereas SRWLOCK can just store that in the SRWLOCK itself (well, in an object on the waiter's stack, pointed to by the SRWLOCK).