reverting change for thread0 waitingCount