You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2010/09/02 17:16:56 UTC
svn commit: r991974 -
/incubator/thrift/trunk/lib/cpp/src/server/TSimpleServer.h
Author: bryanduxbury
Date: Thu Sep 2 15:16:56 2010
New Revision: 991974
URL: http://svn.apache.org/viewvc?rev=991974&view=rev
Log:
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
Modified:
incubator/thrift/trunk/lib/cpp/src/server/TSimpleServer.h
Modified: incubator/thrift/trunk/lib/cpp/src/server/TSimpleServer.h
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/server/TSimpleServer.h?rev=991974&r1=991973&r2=991974&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/server/TSimpleServer.h (original)
+++ incubator/thrift/trunk/lib/cpp/src/server/TSimpleServer.h Thu Sep 2 15:16:56 2010
@@ -58,6 +58,7 @@ class TSimpleServer : public TServer {
void stop() {
stop_ = true;
+ serverTransport_->interrupt();
}
protected: