diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-10-03 21:48:59 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-10-03 21:48:59 +0000 |
commit | a54cb2c9f92a2bcf2c7fb7494c9c9332774a9d6f (patch) | |
tree | e4c66900f1d29bf7b66b040f2293f80bd6f72d3f /ace/Process_Mutex.cpp | |
parent | 44f1b092021a3f36c96c12712e2278a99496f28c (diff) | |
download | ATCD-a54cb2c9f92a2bcf2c7fb7494c9c9332774a9d6f.tar.gz |
ChangeLogTag:Tue Oct 3 14:25:09 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'ace/Process_Mutex.cpp')
-rw-r--r-- | ace/Process_Mutex.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/ace/Process_Mutex.cpp b/ace/Process_Mutex.cpp index 7d8d3500d0b..c4cf1b7df25 100644 --- a/ace/Process_Mutex.cpp +++ b/ace/Process_Mutex.cpp @@ -33,11 +33,11 @@ ACE_Process_Mutex::unique_name (void) } #endif /* !ACE_WIN32 && !ACE_HAS_POSIX_SEM && !ACE_PSOS */ -ACE_Process_Mutex::ACE_Process_Mutex (const ACE_TCHAR *name, void *arg) +ACE_Process_Mutex::ACE_Process_Mutex (const char *name, void *arg) #if defined (ACE_WIN32) || defined (ACE_HAS_POSIX_SEM) || defined (ACE_PSOS) - : lock_ (USYNC_PROCESS, name, (ACE_mutexattr_t *) arg) + : lock_ (USYNC_PROCESS, ACE_TEXT_CHAR_TO_TCHAR (name), (ACE_mutexattr_t *) arg) #else - : lock_ (name ? name : ACE_Process_Mutex::unique_name ()) + : lock_ (name ? ACE_TEXT_CHAR_TO_TCHAR (name) : ACE_Process_Mutex::unique_name ()) #endif /* ACE_WIN32 || ACE_HAS_POSIX_SEM || ACE_PSOS */ { #if !defined (ACE_WIN32) && !defined (ACE_HAS_POSIX_SEM) && !defined (ACE_PSOS) @@ -45,6 +45,19 @@ ACE_Process_Mutex::ACE_Process_Mutex (const ACE_TCHAR *name, void *arg) #endif /* !ACE_WIN32 && !ACE_HAS_POSIX_SEM && !ACE_PSOS */ } +#if defined (ACE_HAS_WCHAR) +ACE_Process_Mutex::ACE_Process_Mutex (const wchar_t *name, void *arg) +#if defined (ACE_WIN32) || defined (ACE_HAS_POSIX_SEM) || defined (ACE_PSOS) + : lock_ (USYNC_PROCESS, ACE_TEXT_WCHAR_TO_TCHAR (name), (ACE_mutexattr_t *) arg) +#else + : lock_ (name ? ACE_TEXT_WCHAR_TO_TCHAR (name): ACE_Process_Mutex::unique_name ()) +#endif /* ACE_WIN32 || ACE_HAS_POSIX_SEM || ACE_PSOS */ +{ +#if !defined (ACE_WIN32) && !defined (ACE_HAS_POSIX_SEM) && !defined (ACE_PSOS) + ACE_UNUSED_ARG (arg); +#endif /* !ACE_WIN32 && !ACE_HAS_POSIX_SEM && !ACE_PSOS */ +} +#endif /* ACE_HAS_WCHAR */ ACE_Process_Mutex::~ACE_Process_Mutex (void) { } |