Hacker News new | ask | show | jobs
by musjleman 298 days ago
SRW lock uses the WaitOnAddress primitives nowadays, not keyed events.
1 comments

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