`if (active_thread && ...` ?