muduo/base库学习笔记(6)-----CountDownLatch类

CountDownLatch 1 构造函数的实现 CountDownLatch::CountDownLatch(int count) : mutex_(), condition_(mutex_), count_(count) { } 2 普通成员函数的实现 void wait()函数的实现 这个函数主要是当条件不满足的时候,就阻塞等待条件满足 void CountDownLat
相关文章
相关标签/搜索