Merge branch 'hotfix/fix-try_lock-for-gcc' into development

This commit is contained in:
John Wellbelove 2021-08-20 10:28:57 +01:00
commit a4e7f24455

View File

@ -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()