6 ms·
SRW lock uses the WaitOnAddress primitives nowadays, not keyed events.
by musjleman 1y ago
SRW lock uses the WaitOnAddress primitives nowadays, not keyed events.
- jstarks 1y agoWell, 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).