xinhao V3,sem_trywait added to avoid the situation that Consumer lock Producer