mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 11:22:15 +02:00
correct small mistake
This commit is contained in:
parent
4c2102f06d
commit
bf43b6f1df
@ -12,7 +12,7 @@ static u32 _GetTag(void) {
|
||||
bool mutexLock(Mutex* m) {
|
||||
u32 self = _GetTag();
|
||||
|
||||
bool first = false;
|
||||
bool first = true;
|
||||
while (1) {
|
||||
u32 cur = __sync_val_compare_and_swap((u32*)m, 0, self);
|
||||
|
||||
@ -40,7 +40,7 @@ bool mutexLock(Mutex* m) {
|
||||
}
|
||||
}
|
||||
|
||||
first = true;
|
||||
first = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user