diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-20 05:32:57 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-20 05:32:57 +0000 |
commit | 39da2782aa737e02049513680b6cbcddb15679a2 (patch) | |
tree | 0f251cf0befa83d09b46f2440372d21c2415ce8f | |
parent | 3e0ecbbf73f79c2346e99d5361472bff715ba585 (diff) | |
download | ATCD-39da2782aa737e02049513680b6cbcddb15679a2.tar.gz |
Forgot to consider platforms without thread support.
-rw-r--r-- | TAO/tao/default_server.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/TAO/tao/default_server.cpp b/TAO/tao/default_server.cpp index cf4a65df53c..bb3e837b2de 100644 --- a/TAO/tao/default_server.cpp +++ b/TAO/tao/default_server.cpp @@ -88,13 +88,15 @@ TAO_Default_Server_Strategy_Factory::create_servant_lock (void) { ACE_Lock *the_lock = 0; - if (this->concurrency_strategy_ == &this->reactive_strategy_) +#if defined (ACE_HAS_THREADS) + if (this->concurrency_strategy_ != &this->reactive_strategy_) ACE_NEW_RETURN (the_lock, - ACE_Lock_Adapter<ACE_Null_Mutex> (), + ACE_Lock_Adapter<ACE_Thread_Mutex> (), 0); else +#endif /* ACE_HAS_THREADS */ ACE_NEW_RETURN (the_lock, - ACE_Lock_Adapter<ACE_Thread_Mutex> (), + ACE_Lock_Adapter<ACE_Null_Mutex> (), 0); return the_lock; |