cpp/thread/jthread/swap