mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-08 13:59:17 +00:00
Replaced "__sync_synchronize" with "__sync"
This commit is contained in:
@ -58,14 +58,14 @@ Retry:
|
||||
CPUData *CoreData = GetCurrentCPU();
|
||||
if (CoreData != nullptr)
|
||||
LockData.Core = CoreData->ID;
|
||||
__sync_synchronize();
|
||||
__sync;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int LockClass::Unlock()
|
||||
{
|
||||
__sync_synchronize();
|
||||
__sync;
|
||||
IsLocked.Store(false, MemoryOrder::Release);
|
||||
LockData.Count--;
|
||||
IsLocked = false;
|
||||
@ -117,7 +117,7 @@ Retry:
|
||||
CPUData *CoreData = GetCurrentCPU();
|
||||
if (CoreData != nullptr)
|
||||
LockData.Core = CoreData->ID;
|
||||
__sync_synchronize();
|
||||
__sync;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user