chk_atomic function

Check Atomic