use THREAD_ID_CURRENT instead of thread_get_current()