mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Change spin lock release functions to do an interlocked exchange.
This commit is contained in:
parent
043c9e039b
commit
3080412dc0
1 changed files with 2 additions and 2 deletions
|
|
@ -664,7 +664,7 @@ void RtlRaiseException_x()
|
|||
void KfReleaseSpinLock(uint32_t* spinLock)
|
||||
{
|
||||
//printf("!!! STUB !!! KfReleaseSpinLock\n");
|
||||
*spinLock = 0;
|
||||
InterlockedExchange((volatile long*)spinLock, 0);
|
||||
}
|
||||
|
||||
void KfAcquireSpinLock(uint32_t* spinLock)
|
||||
|
|
@ -711,7 +711,7 @@ void VdGetSystemCommandBuffer()
|
|||
void KeReleaseSpinLockFromRaisedIrql(uint32_t* spinLock)
|
||||
{
|
||||
//printf("!!! STUB !!! KeReleaseSpinLockFromRaisedIrql\n");
|
||||
*spinLock = 0;
|
||||
InterlockedExchange((volatile long*)spinLock, 0);
|
||||
}
|
||||
|
||||
void KeAcquireSpinLockAtRaisedIrql(uint32_t* spinLock)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue