Idle, GlobalEvents: use std::atomic::exchange()
Less overhead than fetch_and() for what we do.
This commit is contained in:
@@ -61,7 +61,7 @@ idle_add(unsigned flags)
|
||||
unsigned
|
||||
idle_get(void)
|
||||
{
|
||||
return idle_flags.fetch_and(0);
|
||||
return idle_flags.exchange(0);
|
||||
}
|
||||
|
||||
const char*const*
|
||||
|
Reference in New Issue
Block a user