pub fn spawn_thread(thread: Arc<Thread>)