Checking that the current thread is not the one we are looking at