mutex->critical section,remove removetimeout()