commit | 6e3f637bab9bb19621382047d413100fe6c44e0a | [log] [tgz] |
---|---|---|
author | Mark Slee <mcslee@apache.org> | Thu Mar 01 22:05:46 2007 +0000 |
committer | Mark Slee <mcslee@apache.org> | Thu Mar 01 22:05:46 2007 +0000 |
tree | 8d4be56d3acda015ed1a6bf120f649cac8aac1f9 | |
parent | 7c10eaf35c200b46e26b9165be088b6a5d7dd791 [diff] [blame] |
Proper shutdown functionality for Thrift servers Reviewed By: karl git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665038 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/server/TServer.h b/lib/cpp/src/server/TServer.h index a9bcb26..2936e42 100644 --- a/lib/cpp/src/server/TServer.h +++ b/lib/cpp/src/server/TServer.h
@@ -31,6 +31,8 @@ virtual void serve() = 0; + virtual void stop() {} + // Allows running the server as a Runnable thread virtual void run() { serve();