added prototype of thread_waker