Esempio n. 1
0
void worker2(){
    printf("worker 2 begin to work\n");
    sleep(2);
    count.countDown();
    printf("worker 2 complete work\n");
}
void testCountDownFunc(CountDownLatch& latch) { latch.countDown(); }