top | item 44953909

(no title)

musjleman | 6 months ago

SRW lock uses the WaitOnAddress primitives nowadays, not keyed events.

discuss

order

jstarks|6 months ago

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