commit | 76c43688ba909af175e80635a5c38ff021cce7e5 | [log] [tgz] |
---|---|---|
author | Bryan Duxbury <bryanduxbury@apache.org> | 周三 8月 24 21:26:48 2011 +0000 |
committer | Bryan Duxbury <bryanduxbury@apache.org> | 周三 8月 24 21:26:48 2011 +0000 |
tree | 770d239aa47c0288c642cb9c6eccaeb2efe8da06 | |
parent | cff83579d73d6673a933fbb4379f034404804a9a [diff] [blame] |
THRIFT-1289. cpp: implement TNonblockingServer::stop() Patch: Adam Simpkins git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161283 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/server/TNonblockingServer.h b/lib/cpp/src/server/TNonblockingServer.h index 31741e4..20a3340 100644 --- a/lib/cpp/src/server/TNonblockingServer.h +++ b/lib/cpp/src/server/TNonblockingServer.h
@@ -718,6 +718,11 @@ * loops over the libevent handler. */ void serve(); + + /** + * May be called from a separate thread to cause serve() to return. + */ + void stop(); }; /// Three states for sockets: recv frame size, recv data, and send mode