mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Merge branch 'hotfix/fix-try_lock-for-gcc' into development
This commit is contained in:
commit
a4e7f24455
@ -61,7 +61,7 @@ namespace etl
|
||||
|
||||
bool try_lock()
|
||||
{
|
||||
return (__sync_lock_test_and_set(&flag, 1U) == 1U);
|
||||
return (__sync_lock_test_and_set(&flag, 1U) == 0U);
|
||||
}
|
||||
|
||||
void unlock()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user