raii_thread_base