From: Bryan Duxbury Date: Thu, 2 Sep 2010 15:16:56 +0000 (+0000) Subject: THRIFT-567. cpp: Can't immediately stop a TSimpleServer thread that is idle X-Git-Tag: 0.5.0~66 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=383e9495667afbd686beb89bb510433fdd4cfe82;p=common%2Fthrift.git THRIFT-567. cpp: Can't immediately stop a TSimpleServer thread that is idle This interrupts the server in addition to setting the stop flag. Patch: Rush Manbert git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991974 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/server/TSimpleServer.h b/lib/cpp/src/server/TSimpleServer.h index c4fc91c7..29e120e1 100644 --- a/lib/cpp/src/server/TSimpleServer.h +++ b/lib/cpp/src/server/TSimpleServer.h @@ -58,6 +58,7 @@ class TSimpleServer : public TServer { void stop() { stop_ = true; + serverTransport_->interrupt(); } protected: