From 1f60a7c117e243ed9508132351ad23596be2d9cf Mon Sep 17 00:00:00 2001 From: iliyan Date: Wed, 9 Apr 2008 12:04:57 +0000 Subject: Merged revisions 81283-81284 via svnmerge from https://svn.dre.vanderbilt.edu/DOC/Middleware/trunk/ACE ........ r81283 | schmidt | 2008-04-08 20:28:18 -0500 (Tue, 08 Apr 2008) | 1 line ChangeLogTag:Wed ........ r81284 | iliyan | 2008-04-08 22:08:22 -0500 (Tue, 08 Apr 2008) | 1 line ChangeLogTag: Wed Apr 9 02:43:37 UTC 2008 Iliyan Jeliazkov ........ --- ACE/ChangeLog | 23 +++++++++++++++++++++++ ACE/ace/Condition_T.cpp | 11 +++++------ ACE/ace/Service_Config.cpp | 14 +++++++------- ACE/ace/Service_Config.h | 2 +- 4 files changed, 36 insertions(+), 14 deletions(-) diff --git a/ACE/ChangeLog b/ACE/ChangeLog index 948cdc6cadd..6310449cce1 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,26 @@ +Wed Apr 9 02:43:37 UTC 2008 Iliyan Jeliazkov + + * ace/Dynamic_Service.inl (instance): + Adjusting interface to take a smart pointer. + + * ace/OS_NS_unistd.cpp (argv_to_string): + Adding interpretation for tabs and new line characters as + characters to trigger quoting. + + * ace/Service_Config.h: + * ace/Service_Config.cpp: + * ace/Service_Gestalt.h: + * ace/Service_Gestalt.inl: + * ace/Service_Gestalt.cpp: + * ace/Service_Repository.cpp: + Reformatting, updating comments and logging. + +Wed Apr 9 01:21:42 UTC 2008 Douglas C. Schmidt + + * ace/Condition_T.cpp (wait): Fixed a bug where the mutex + parameter wasn't being used properly if abstime was 0. Thanks + to Andriy Gapon for reporting this. + Mon Apr 7 18:49:57 UTC 2008 Johnny Willemsen * bin/MakeProjectCreator/docs/templates/gnu.txt: diff --git a/ACE/ace/Condition_T.cpp b/ACE/ace/Condition_T.cpp index fa0dab4e80a..e4931ce442e 100644 --- a/ACE/ace/Condition_T.cpp +++ b/ACE/ace/Condition_T.cpp @@ -96,13 +96,12 @@ ACE_Condition::wait (MUTEX &mutex, { // ACE_TRACE ("ACE_Condition::wait"); if (abstime == 0) - return this->wait (); + return ACE_OS::cond_wait (&this->cond_, + &mutex.lock_); else - { - return ACE_OS::cond_timedwait (&this->cond_, - &mutex.lock_, - (ACE_Time_Value *) abstime); - } + return ACE_OS::cond_timedwait (&this->cond_, + &mutex.lock_, + (ACE_Time_Value *) abstime); } // Peform an "alertable" timed wait. If the argument ABSTIME == 0 diff --git a/ACE/ace/Service_Config.cpp b/ACE/ace/Service_Config.cpp index eeb4d005681..1eda39f8a8b 100644 --- a/ACE/ace/Service_Config.cpp +++ b/ACE/ace/Service_Config.cpp @@ -196,7 +196,7 @@ ACE_Service_Config::open_i (const ACE_TCHAR program_name[], ignore_static_svcs, ignore_default_svc_conf_file, ignore_debug_flag); - + // Check for things we need to do on a per-process basis and which // may not be safe, or wise to do an a per instance basis @@ -337,17 +337,17 @@ ACE_Service_Config::ACE_Service_Config (bool ignore_static_svcs, int signum) { ACE_TRACE ("ACE_Service_Config::ACE_Service_Config"); - + // TODO: Need to find a more customizable way of instantiating the // gestalt but perhaps we should leave this out untill such // customizations are identified. ACE_Service_Gestalt* tmp = 0; ACE_NEW_NORETURN (tmp, ACE_Service_Gestalt (size, false, ignore_static_svcs)); - + this->instance_ = tmp; this->threadkey_.set (tmp); - + ACE_Service_Config::signum_ = signum; } @@ -355,17 +355,17 @@ ACE_Service_Config::ACE_Service_Config (const ACE_TCHAR program_name[], const ACE_TCHAR *logger_key) { ACE_TRACE ("ACE_Service_Config::ACE_Service_Config"); - + // TODO: Need to find a more customizable way of instantiating the // gestalt but perhaps we should leave this out untill such // customizations are identified. ACE_Service_Gestalt* tmp = 0; ACE_NEW_NORETURN (tmp, ACE_Service_Gestalt (ACE_Service_Repository::DEFAULT_SIZE, false)); - + this->instance_ = tmp; this->threadkey_.set (tmp); - + if (this->open (program_name, logger_key) == -1 && errno != ENOENT) { diff --git a/ACE/ace/Service_Config.h b/ACE/ace/Service_Config.h index 14d505fdfdc..1ecfce042f8 100644 --- a/ACE/ace/Service_Config.h +++ b/ACE/ace/Service_Config.h @@ -546,7 +546,7 @@ protected: protected: - /// @deprecated + /// @deprecated /// Process service configuration requests that were provided on the /// command-line. Returns the number of errors that occurred. static int process_commandline_directives (void); -- cgit v1.2.1