public bool Exchange (bool newVal) { int newTemp = newVal ? Set : UnSet; return AotInterlocked.Exchange (ref flag, newTemp) == Set; }