add wakeup to mthread lib