_ReleaseSpinLock
Microsoft Specific
Used to leave a critical section that was entered using _AcquireSpinLock, which signals that it is now safe to allow another thread to execute the critical section.
void _ReleaseSpinLock(
unsigned __int64 * Lock
);
Parameters
- [out] Lock
The lock variable, which is the same variable used in the _AcquireSpinLock function.
Requirements
Intrinsic | Architecture |
---|---|
_ReleaseSpinLock |
IPF |
Header file <intrin.h>
Remarks
Other threads attempting to execute _AcquireSpinLock with the same variable see zero in the Lock variable until the thread that has the lock calls _ReleaseSpinLock on that variable. _AcquireSpinLock and _ReleaseSpinLock must occur in pairs that use the same address.
This routine is only available as an intrinsic.
Example
For more information, see _AcquireSpinLock.