'Slot' should be put before the compare expression to guarantee thread
safe.