move __IsReady function into the critical section