diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2023-01-13 12:36:49 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2023-01-13 12:36:49 +0100 |
commit | 22359d30f11aa48abba5a3ad7bad7bed7489ff5b (patch) | |
tree | bb91ef49f641a627fa102eda9dd3f5649c3e6c57 /ACE/tests | |
parent | 8f0f05f51c0cf595654a35f9dc47d82809c2268d (diff) | |
download | ATCD-22359d30f11aa48abba5a3ad7bad7bed7489ff5b.tar.gz |
Fixed cleanup mistakes
* ACE/ace/OS_NS_Thread.inl:
* ACE/ace/OS_NS_stdio.inl:
* ACE/tests/Bug_3943_Regression_Test.cpp:
Diffstat (limited to 'ACE/tests')
-rw-r--r-- | ACE/tests/Bug_3943_Regression_Test.cpp | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/ACE/tests/Bug_3943_Regression_Test.cpp b/ACE/tests/Bug_3943_Regression_Test.cpp index fbc370ecbb6..b0155ef6d2c 100644 --- a/ACE/tests/Bug_3943_Regression_Test.cpp +++ b/ACE/tests/Bug_3943_Regression_Test.cpp @@ -174,10 +174,14 @@ namespace { int processENOBUFS() { +#if defined (ACE_WIN32) // it has been identified that Windows7 does not have the ENOBUFS issue // but testing has not been performed on Server 2008 or Vista to identify - // wether the issue exists or not + // whether the issue exists or not return beforeVersion(6, 1, VER_NT_WORKSTATION); +#else + return 0; +#endif /* ACE_WIN32 */ } struct IovecGuard @@ -192,31 +196,31 @@ namespace { static const int ALL_SLOTS = -1; }; + /* + * This class is the product created by both ACE_Connector + * and ACE_Acceptor objects. + * + * This class gets its own header file to work around AIX C++ + * compiler "features" related to template instantiation... It is + * only used by Conn_Test.cpp. + */ class Svc_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> { - // = TITLE - // This class is the product created by both <ACE_Connector> - // and <ACE_Acceptor> objects. - // - // = DESCRIPTION - // This class gets its own header file to work around AIX C++ - // compiler "features" related to template instantiation... It is - // only used by Conn_Test.cpp. public: - Svc_Handler (ACE_Thread_Manager * = 0); // Do-nothing constructor. + Svc_Handler (ACE_Thread_Manager * = nullptr); - int open (void *) override; // Initialization hook. + int open (void *) override; - void send_data (); // Send data to server. + void send_data (); - void recv_data (); // Recv data from client. + void recv_data (); - int close (u_long = 0) override; // Shutdown the <Svc_Handler>. + int close (u_long = 0) override; private: enum Direction { READX, WRITEX }; // VxWorks defines READ and WRITE |