| 1509 | } |
| 1510 | |
| 1511 | void TNonblockingIOThread::join() { |
| 1512 | // If this was a thread created by a factory (not the thread that called |
| 1513 | // serve()), we join() it to make sure we shut down fully. |
| 1514 | if (thread_) { |
| 1515 | try { |
| 1516 | // Note that it is safe to both join() ourselves twice, as well as join |
| 1517 | // the current thread as the pthread implementation checks for deadlock. |
| 1518 | thread_->join(); |
| 1519 | } catch (...) { |
| 1520 | // swallow everything |
| 1521 | } |
| 1522 | } |
| 1523 | } |
| 1524 | } |
| 1525 | } |
| 1526 | } // apache::thrift::server |
no outgoing calls
no test coverage detected