Template:cpp/thread/latch/dsc arrive and wait