| 116 | } |
| 117 | |
| 118 | void InfoThread::stop() { |
| 119 | { |
| 120 | BAIDU_SCOPED_LOCK(_mutex); |
| 121 | if (_stop) { |
| 122 | return; |
| 123 | } |
| 124 | _stop = true; |
| 125 | pthread_cond_signal(&_cond); |
| 126 | } |
| 127 | pthread_join(_tid, NULL); |
| 128 | } |
| 129 | |
| 130 | } // namespace brpc |
no outgoing calls