fix kernel crash bug, using wait event function to wake up thread