diff options
Diffstat (limited to 'ACE/apps/JAWS2/JAWS/Server.cpp')
-rw-r--r-- | ACE/apps/JAWS2/JAWS/Server.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ACE/apps/JAWS2/JAWS/Server.cpp b/ACE/apps/JAWS2/JAWS/Server.cpp index 4fbec0cd0f7..b5d3707bc31 100644 --- a/ACE/apps/JAWS2/JAWS/Server.cpp +++ b/ACE/apps/JAWS2/JAWS/Server.cpp @@ -61,18 +61,18 @@ JAWS_Server::init (int argc, char *argv[]) this->policy_.concurrency (JAWS_Thread_Pool_Singleton::instance ()); } -#if !(defined (ACE_WIN32) || defined (ACE_HAS_AIO_CALLS)) +#if !(defined (ACE_HAS_WIN32_OVERLAPPED_IO) || defined (ACE_HAS_AIO_CALLS)) this->dispatch_ = 0; -#endif /* !defined (ACE_WIN32) */ +#endif /* !(ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS) */ if (this->dispatch_ == 1) { -#if defined (ACE_WIN32) || defined (ACE_HAS_AIO_CALLS) +#if defined (ACE_HAS_WIN32_OVERLAPPED_IO) || defined (ACE_HAS_AIO_CALLS) this->policy_.io (JAWS_Asynch_IO_Singleton::instance ()); this->policy_.ioh_factory (JAWS_Asynch_IO_Handler_Factory_Singleton::instance ()); this->policy_.acceptor (JAWS_IO_Asynch_Acceptor_Singleton::instance ()); -#endif /* defined (ACE_WIN32) */ +#endif /* ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS */ } else { @@ -112,7 +112,7 @@ JAWS_Server::open (JAWS_Pipeline_Handler *protocol, // prime the acceptor if appropriate if (this->dispatch_ == 1) { -#if defined (ACE_WIN32) || defined (ACE_HAS_AIO_CALLS) +#if defined (ACE_HAS_WIN32_OVERLAPPED_IO) || defined (ACE_HAS_AIO_CALLS) int n = this->nthreads_; if (this->concurrency_ == 1) @@ -121,7 +121,7 @@ JAWS_Server::open (JAWS_Pipeline_Handler *protocol, for (int i = 0; i < n * this->ratio_ - n; i++) db->task ()->put (db); -#endif /* defined (ACE_WIN32) */ +#endif /* ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS */ } // The message block should contain an INET_Addr, and call the |