You know the drill: if (data->writeLock & StopBitMask)