| 447 | } |
| 448 | |
| 449 | void ThriftServer::StopForTesting() { |
| 450 | DCHECK(server_thread_ != NULL); |
| 451 | DCHECK(server_); |
| 452 | server_->stop(); |
| 453 | if (started_) Join(); |
| 454 | } |
| 455 | |
| 456 | void ThriftServer::GetConnectionContextList(ConnectionContextList* connection_contexts) { |
| 457 | lock_guard<mutex> l(connection_contexts_lock_); |