diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-08 08:04:35 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-08 08:04:35 +0100 |
commit | 9027b24610848c0eb0d768b60b132ce9e09dee7d (patch) | |
tree | f2b313d8110861616f330776f20f1df0c348cc0b /ACE/tests/Proactor_Test_IPV6.cpp | |
parent | cfb87b202043d9f6b5532f3e3e4e431f6ced4c0b (diff) | |
download | ATCD-9027b24610848c0eb0d768b60b132ce9e09dee7d.tar.gz |
Removed redundant void
Diffstat (limited to 'ACE/tests/Proactor_Test_IPV6.cpp')
-rw-r--r-- | ACE/tests/Proactor_Test_IPV6.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/ACE/tests/Proactor_Test_IPV6.cpp b/ACE/tests/Proactor_Test_IPV6.cpp index 341c604c30d..f35a9f99a27 100644 --- a/ACE/tests/Proactor_Test_IPV6.cpp +++ b/ACE/tests/Proactor_Test_IPV6.cpp @@ -165,7 +165,7 @@ disable_signal (int sigmin, int sigmax) class MyTask : public ACE_Task<ACE_MT_SYNCH> { public: - MyTask (void): + MyTask (): lock_ (), sem_ ((unsigned int) 0), proactor_(0) {} @@ -176,17 +176,17 @@ public: (void) this->delete_proactor(); } - virtual int svc (void); + virtual int svc (); int start (int num_threads, ProactorType type_proactor, size_t max_op ); - int stop (void); + int stop (); private: int create_proactor (ProactorType type_proactor, size_t max_op); - int delete_proactor (void); + int delete_proactor (); ACE_SYNCH_RECURSIVE_MUTEX lock_; ACE_Thread_Semaphore sem_; @@ -280,7 +280,7 @@ MyTask::create_proactor (ProactorType type_proactor, size_t max_op) } int -MyTask::delete_proactor (void) +MyTask::delete_proactor () { ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX, monitor, @@ -342,7 +342,7 @@ MyTask::stop () } int -MyTask::svc (void) +MyTask::svc () { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) MyTask started\n"))); @@ -365,13 +365,13 @@ class TestData { public: TestData (); - bool testing_done (void); - Server *server_up (void); - Client *client_up (void); + bool testing_done (); + Server *server_up (); + Client *client_up (); void server_done (Server *s); void client_done (Client *c); - void stop_all (void); - void report (void); + void stop_all (); + void report (); private: struct Local_Stats @@ -404,7 +404,7 @@ TestData::TestData () } bool -TestData::testing_done (void) +TestData::testing_done () { int svr_up = this->servers_.sessions_up_.value (); int svr_dn = this->servers_.sessions_down_.value (); @@ -418,7 +418,7 @@ TestData::testing_done (void) } Server * -TestData::server_up (void) +TestData::server_up () { ++this->servers_.sessions_up_; ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, monitor, this->list_lock_, 0); @@ -440,7 +440,7 @@ TestData::server_up (void) } Client * -TestData::client_up (void) +TestData::client_up () { ++this->clients_.sessions_up_; ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, monitor, this->list_lock_, 0); @@ -532,7 +532,7 @@ TestData::client_done (Client *c) } void -TestData::stop_all (void) +TestData::stop_all () { int i; @@ -569,7 +569,7 @@ TestData::stop_all (void) } void -TestData::report (void) +TestData::report () { // Print statistics ACE_TCHAR bufs [256]; @@ -622,10 +622,10 @@ class Acceptor : public ACE_Asynch_Acceptor<Server> { public: Acceptor (TestData *tester); - virtual ~Acceptor (void); + virtual ~Acceptor (); // Virtual from ACE_Asynch_Acceptor - Server *make_handler (void); + Server *make_handler (); private: TestData *tester_; @@ -637,13 +637,13 @@ Acceptor::Acceptor (TestData *tester) { } -Acceptor::~Acceptor (void) +Acceptor::~Acceptor () { this->cancel (); } Server * -Acceptor::make_handler (void) +Acceptor::make_handler () { return this->tester_->server_up (); } @@ -667,7 +667,7 @@ Server::Server (TestData *tester, int id) { } -Server::~Server (void) +Server::~Server () { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) Server %d dtor; %d sends (%d bytes); ") @@ -777,7 +777,7 @@ Server::open (ACE_HANDLE handle, ACE_Message_Block &) } int -Server::initiate_read_stream (void) +Server::initiate_read_stream () { if (this->flg_cancel_ != 0 || this->handle_ == ACE_INVALID_HANDLE) return -1; @@ -1056,12 +1056,12 @@ class Connector : public ACE_Asynch_Connector<Client> { public: Connector (TestData *tester); - virtual ~Connector (void); + virtual ~Connector (); int start (const ACE_INET_Addr &addr, int num); // Virtual from ACE_Asynch_Connector - Client *make_handler (void); + Client *make_handler (); private: TestData *tester_; @@ -1074,13 +1074,13 @@ Connector::Connector (TestData *tester) { } -Connector::~Connector (void) +Connector::~Connector () { this->cancel (); } Client * -Connector::make_handler (void) +Connector::make_handler () { return this->tester_->client_up (); } @@ -1143,7 +1143,7 @@ Client::Client (TestData *tester, int id) { } -Client::~Client (void) +Client::~Client () { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) Client %d dtor; %d sends (%d bytes); ") @@ -1312,7 +1312,7 @@ Client::open (ACE_HANDLE handle, ACE_Message_Block &) } int -Client::initiate_write_stream (void) +Client::initiate_write_stream () { if (this->flg_cancel_ != 0 || this->stop_writing_ || @@ -1394,7 +1394,7 @@ Client::initiate_write_stream (void) } int -Client::initiate_read_stream (void) +Client::initiate_read_stream () { if (this->flg_cancel_ != 0 || this->handle_ == ACE_INVALID_HANDLE) return -1; |