commit | 383e9495667afbd686beb89bb510433fdd4cfe82 | [log] [tgz] |
---|---|---|
author | Bryan Duxbury <bryanduxbury@apache.org> | Thu Sep 02 15:16:56 2010 +0000 |
committer | Bryan Duxbury <bryanduxbury@apache.org> | Thu Sep 02 15:16:56 2010 +0000 |
tree | 3cf72e09b19021ede1bab7cff6e72301c3652e1d | |
parent | d6a02ff99bcee734d5335c91f5ada41d7322ecb4 [diff] [blame] |
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 c4fc91c..29e120e 100644 --- a/lib/cpp/src/server/TSimpleServer.h +++ b/lib/cpp/src/server/TSimpleServer.h
@@ -58,6 +58,7 @@ void stop() { stop_ = true; + serverTransport_->interrupt(); } protected: