add std_this_thread_wait_when macros