Fix TServerSocket accept() to not do 200ms polling

Summary: Better to signal to unix file in select

Reviewed By: marc


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665056 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TServerSocket.h b/lib/cpp/src/transport/TServerSocket.h
index 969c00b..edd2510 100644
--- a/lib/cpp/src/transport/TServerSocket.h
+++ b/lib/cpp/src/transport/TServerSocket.h
@@ -33,9 +33,7 @@
   void listen();
   void close();
 
-  void interrupt() {
-    interrupt_ = true;
-  }
+  void interrupt();
 
  protected:
   boost::shared_ptr<TTransport> acceptImpl();
@@ -46,7 +44,9 @@
   int acceptBacklog_;
   int sendTimeout_;
   int recvTimeout_;
-  volatile bool interrupt_;
+
+  int intSock1_;
+  int intSock2_;
 };
 
 }}} // facebook::thrift::transport