summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-28 22:45:24 +0000
committerluther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-28 22:45:24 +0000
commit8d9183443b722787493a90e85dda53b06da04c64 (patch)
treef507b8924ffb0153fb4ceb57a4b8e60c74f92dc1
parent102aba3d6d3b0e6680c08b4af9388ae490ae7eb8 (diff)
downloadATCD-8d9183443b722787493a90e85dda53b06da04c64.tar.gz
Wed Mar 28 16:40:24 2001 Luther Baker <luther@cs.wustl.edu>
-rw-r--r--ChangeLog37
-rw-r--r--ChangeLogs/ChangeLog-02a37
-rw-r--r--ChangeLogs/ChangeLog-03a37
-rw-r--r--ace/OS.cpp31
-rw-r--r--ace/OS.h14
-rw-r--r--ace/OS.i124
-rw-r--r--ace/config-all.h2
7 files changed, 174 insertions, 108 deletions
diff --git a/ChangeLog b/ChangeLog
index f0729ef9dfa..94f23f34108 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+Wed Mar 28 16:40:24 2001 Luther Baker <luther@cs.wustl.edu>
+
+ * ace/config-all.h
+
+ Removed ACE_WIN32 support for ACE_HAS_POSIX_SEM just because
+ ACE_HAS_PACE. This can be defined for ACE_WIN32 after we
+ write more WIN32 emulation.
+
+ * ace/OS.h
+ * ace/OS.i
+ * ace/OS.cpp
+
+ PACE updates.
+
Wed Mar 28 11:37:09 2001 Fuzz Master D <brunsch@uci.edu>
* bin/fuzz.pl:
@@ -275,6 +289,7 @@ Thu Mar 22 10:18:24 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Thanks to Eric Desamore <Eric.Desamore@idtv.bull.net> for
motivating this.
+>>>>>>> 4.1785
Mon Mar 26 11:03:22 2001 Balachandran <bala@cs.wustl.edu>
* ACE version 5.1.14 released.
@@ -1044,15 +1059,37 @@ Mon Mar 5 13:56:33 2001 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Mon Mar 5 19:20:45 2001 Fuzz Master D <brunsch@uci.edu>
* bin/fuzz.pl:
+<<<<<<< ChangeLog
+=======
As Ossama pointed out, the ACE_CHECK test was seeing problems in
+<<<<<<< ChangeLog
+ the tao_idl files since it has uses of ACE_TRY_ENV inside
+ quotes. Made sure not to detect problems in this case.
+>>>>>>> 4.1785
+
+ As Ossama pointed out, the ACE_CHECK test was seeing
+ problems in the tao_idl files since it has uses of ACE_TRY_ENV
+ inside quotes. Made sure not to detect problems in this case.
+=======
the tao_idl files since it has uses of ACE_TRY_ENV inside
quotes. Made sure not to detect problems in this case.
+>>>>>>> 4.1786
Mon Mar 5 18:58:32 2001 Fuzz Master D <brunsch@uci.edu>
* bin/fuzz.pl:
+<<<<<<< ChangeLog
+
+ Fixed some false positives in the resolve_initial_reference
+ test and also added an ACE_CHECK test by Carlos's request.
+=======
Fixed some false positives in the resolve_initial_reference test
+<<<<<<< ChangeLog
+ and also added an ACE_CHECK test by Carlos's request.
+>>>>>>> 4.1785
+=======
and also added an ACE_CHECK test by Carlos's request.
+>>>>>>> 4.1786
Mon Mar 5 18:54:42 2001 Darrell Brunsch <brunsch@uci.edu>
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index f0729ef9dfa..94f23f34108 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,17 @@
+Wed Mar 28 16:40:24 2001 Luther Baker <luther@cs.wustl.edu>
+
+ * ace/config-all.h
+
+ Removed ACE_WIN32 support for ACE_HAS_POSIX_SEM just because
+ ACE_HAS_PACE. This can be defined for ACE_WIN32 after we
+ write more WIN32 emulation.
+
+ * ace/OS.h
+ * ace/OS.i
+ * ace/OS.cpp
+
+ PACE updates.
+
Wed Mar 28 11:37:09 2001 Fuzz Master D <brunsch@uci.edu>
* bin/fuzz.pl:
@@ -275,6 +289,7 @@ Thu Mar 22 10:18:24 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Thanks to Eric Desamore <Eric.Desamore@idtv.bull.net> for
motivating this.
+>>>>>>> 4.1785
Mon Mar 26 11:03:22 2001 Balachandran <bala@cs.wustl.edu>
* ACE version 5.1.14 released.
@@ -1044,15 +1059,37 @@ Mon Mar 5 13:56:33 2001 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Mon Mar 5 19:20:45 2001 Fuzz Master D <brunsch@uci.edu>
* bin/fuzz.pl:
+<<<<<<< ChangeLog
+=======
As Ossama pointed out, the ACE_CHECK test was seeing problems in
+<<<<<<< ChangeLog
+ the tao_idl files since it has uses of ACE_TRY_ENV inside
+ quotes. Made sure not to detect problems in this case.
+>>>>>>> 4.1785
+
+ As Ossama pointed out, the ACE_CHECK test was seeing
+ problems in the tao_idl files since it has uses of ACE_TRY_ENV
+ inside quotes. Made sure not to detect problems in this case.
+=======
the tao_idl files since it has uses of ACE_TRY_ENV inside
quotes. Made sure not to detect problems in this case.
+>>>>>>> 4.1786
Mon Mar 5 18:58:32 2001 Fuzz Master D <brunsch@uci.edu>
* bin/fuzz.pl:
+<<<<<<< ChangeLog
+
+ Fixed some false positives in the resolve_initial_reference
+ test and also added an ACE_CHECK test by Carlos's request.
+=======
Fixed some false positives in the resolve_initial_reference test
+<<<<<<< ChangeLog
+ and also added an ACE_CHECK test by Carlos's request.
+>>>>>>> 4.1785
+=======
and also added an ACE_CHECK test by Carlos's request.
+>>>>>>> 4.1786
Mon Mar 5 18:54:42 2001 Darrell Brunsch <brunsch@uci.edu>
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index f0729ef9dfa..94f23f34108 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,3 +1,17 @@
+Wed Mar 28 16:40:24 2001 Luther Baker <luther@cs.wustl.edu>
+
+ * ace/config-all.h
+
+ Removed ACE_WIN32 support for ACE_HAS_POSIX_SEM just because
+ ACE_HAS_PACE. This can be defined for ACE_WIN32 after we
+ write more WIN32 emulation.
+
+ * ace/OS.h
+ * ace/OS.i
+ * ace/OS.cpp
+
+ PACE updates.
+
Wed Mar 28 11:37:09 2001 Fuzz Master D <brunsch@uci.edu>
* bin/fuzz.pl:
@@ -275,6 +289,7 @@ Thu Mar 22 10:18:24 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Thanks to Eric Desamore <Eric.Desamore@idtv.bull.net> for
motivating this.
+>>>>>>> 4.1785
Mon Mar 26 11:03:22 2001 Balachandran <bala@cs.wustl.edu>
* ACE version 5.1.14 released.
@@ -1044,15 +1059,37 @@ Mon Mar 5 13:56:33 2001 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Mon Mar 5 19:20:45 2001 Fuzz Master D <brunsch@uci.edu>
* bin/fuzz.pl:
+<<<<<<< ChangeLog
+=======
As Ossama pointed out, the ACE_CHECK test was seeing problems in
+<<<<<<< ChangeLog
+ the tao_idl files since it has uses of ACE_TRY_ENV inside
+ quotes. Made sure not to detect problems in this case.
+>>>>>>> 4.1785
+
+ As Ossama pointed out, the ACE_CHECK test was seeing
+ problems in the tao_idl files since it has uses of ACE_TRY_ENV
+ inside quotes. Made sure not to detect problems in this case.
+=======
the tao_idl files since it has uses of ACE_TRY_ENV inside
quotes. Made sure not to detect problems in this case.
+>>>>>>> 4.1786
Mon Mar 5 18:58:32 2001 Fuzz Master D <brunsch@uci.edu>
* bin/fuzz.pl:
+<<<<<<< ChangeLog
+
+ Fixed some false positives in the resolve_initial_reference
+ test and also added an ACE_CHECK test by Carlos's request.
+=======
Fixed some false positives in the resolve_initial_reference test
+<<<<<<< ChangeLog
+ and also added an ACE_CHECK test by Carlos's request.
+>>>>>>> 4.1785
+=======
and also added an ACE_CHECK test by Carlos's request.
+>>>>>>> 4.1786
Mon Mar 5 18:54:42 2001 Darrell Brunsch <brunsch@uci.edu>
diff --git a/ace/OS.cpp b/ace/OS.cpp
index ff9c038f317..7c3f1228c8a 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -941,7 +941,7 @@ void
ACE_OS::mutex_lock_cleanup (void *mutex)
{
ACE_OS_TRACE ("ACE_OS::mutex_lock_cleanup");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
pace_pthread_mutex_t *p_lock = (pace_pthread_mutex_t *) mutex;
pace_pthread_mutex_unlock (p_lock);
# elif defined (ACE_HAS_THREADS)
@@ -1350,7 +1350,7 @@ ACE_OS::sched_params (const ACE_Sched_Params &sched_params,
ACE_id_t id)
{
ACE_OS_TRACE ("ACE_OS::sched_params");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_UNUSED_ARG (id);
if (sched_params.quantum () != ACE_Time_Value::zero)
{
@@ -3647,7 +3647,7 @@ void
ACE_OS::thr_exit (void *status)
{
ACE_OS_TRACE ("ACE_OS::thr_exit");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
::pace_pthread_exit (status);
# elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
@@ -3829,10 +3829,7 @@ ACE_OS::thr_setspecific (ACE_thread_key_t key, void *data)
// ACE_OS_TRACE ("ACE_OS::thr_setspecific");
// If we are using TSS emulation then we shuld use ACE's implementation
// of it and not make any PACE calls.
-#if defined (ACE_HAS_PACE) && !defined (ACE_HAS_TSS_EMULATION)
-# if defined (ACE_WIN32)
- int ace_result_ = 0;
-# endif /* ACE_WIN32 */
+#if defined (ACE_HAS_PACE) && !defined (ACE_HAS_TSS_EMULATION) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_setspecific (key, data),
ace_result_),
int, -1);
@@ -3904,7 +3901,7 @@ ACE_OS::thr_keyfree (ACE_thread_key_t key)
ACE_OS_TRACE ("ACE_OS::thr_keyfree");
// If we are using TSS emulation then we shuld use ACE's implementation
// of it and not make any PACE calls.
-# if defined (ACE_HAS_PACE) && !defined (ACE_HAS_TSS_EMULATION)
+# if defined (ACE_HAS_PACE) && !defined (ACE_HAS_TSS_EMULATION) && !defined (ACE_WIN32)
return ::pace_pthread_key_delete (key);
# elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_TSS_EMULATION)
@@ -3950,7 +3947,7 @@ ACE_OS::thr_keycreate (ACE_OS_thread_key_t *key,
void *inst)
{
// ACE_OS_TRACE ("ACE_OS::thr_keycreate");
-# if defined (ACE_HAS_PACE)
+# if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_key_create (key, dest),
ace_result_),
int, -1);
@@ -5920,7 +5917,7 @@ ACE_OS::cond_wait (ACE_cond_t *cv,
# if defined (ACE_HAS_SIGNAL_OBJECT_AND_WAIT)
if (external_mutex->type_ == USYNC_PROCESS)
// This call will automatically release the mutex and wait on the semaphore.
-# if defined (ACE_HAS_PACE)
+# if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_WIN32CALL (ACE_ADAPT_RETVAL (::SignalObjectAndWait (external_mutex->proc_mutex_,
cv->sema_.sema_, INFINITE, FALSE),
result),
@@ -6047,7 +6044,7 @@ ACE_OS::cond_timedwait (ACE_cond_t *cv,
if (external_mutex->type_ == USYNC_PROCESS)
// This call will automatically release the mutex and wait on the
// semaphore.
-# if defined (ACE_HAS_PACE)
+# if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
result = ::SignalObjectAndWait (external_mutex->proc_mutex_,
cv->sema_.sema_,
msec_timeout,
@@ -6072,11 +6069,7 @@ ACE_OS::cond_timedwait (ACE_cond_t *cv,
// ACE_OS::broadcast().
# if defined (ACE_WIN32)
# if !defined (ACE_USES_WINCE_SEMA_SIMULATION)
-# if defined (ACE_HAS_PACE)
- result = ::WaitForSingleObject (cv->sema_.sema_, msec_timeout);
-# else
result = ::WaitForSingleObject (cv->sema_, msec_timeout);
-# endif /* ACE_HAS_PACE */
# else /* ACE_USES_WINCE_SEMA_SIMULATION */
// Can't use Win32 API on our simulated semaphores.
result = ACE_OS::sema_wait (&cv->sema_,
@@ -6250,11 +6243,7 @@ ACE_OS::cond_timedwait (ACE_cond_t *cv,
// Wait to be awakened by a ACE_OS::signal() or ACE_OS::broadcast().
# if !defined (ACE_USES_WINCE_SEMA_SIMULATION)
-# if defined (ACE_HAS_PACE)
- result = ::WaitForSingleObject (cv->sema_.sema_, msec_timeout);
-# else
result = ::WaitForSingleObject (cv->sema_, msec_timeout);
-# endif /* ACE_HAS_PACE */
# else
// Can't use Win32 API on simulated semaphores.
result = ACE_OS::sema_wait (&cv->sema_,
@@ -6325,11 +6314,7 @@ ACE_OS::cond_wait (ACE_cond_t *cv,
// Wait to be awakened by a ACE_OS::cond_signal() or
// ACE_OS::cond_broadcast().
# if !defined (ACE_USES_WINCE_SEMA_SIMULATION)
-# if defined (ACE_HAS_PACE)
- result = ::WaitForSingleObject (cv->sema_.sema_, INFINITE);
-# else
result = ::WaitForSingleObject (cv->sema_, INFINITE);
-# endif /* ACE_HAS_PACE */
# else
// Can't use Win32 API on simulated semaphores.
result = ACE_OS::sema_wait (&cv->sema_);
diff --git a/ace/OS.h b/ace/OS.h
index 1df60f6fccb..d81cf7f86fd 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -1815,13 +1815,12 @@ typedef const struct rlimit ACE_SETRLIMIT_TYPE;
ACE_Read_Guard< MUTEX > OBJ (LOCK); \
if (OBJ.locked () == 0) return RETURN;
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
# include /**/ "pace/semaphore.h"
# if !defined (SEM_FAILED)
# define SEM_FAILED ((pace_sem_t *) -1)
# endif /* !SEM_FAILED */
-
typedef struct
{
pace_sem_t *sema_;
@@ -2444,7 +2443,7 @@ typedef struct
// Wrapper for NT Events.
typedef HANDLE ACE_event_t;
-# if !defined (ACE_HAS_PACE)
+# if !defined (ACE_HAS_PACE) || defined (ACE_WIN32)
// This can probably get _wider_ as more types are defined in PACE.
// ie: see above ACE_mutex_t
@@ -3339,15 +3338,10 @@ PAGE_NOCACHE */
typedef OVERLAPPED ACE_OVERLAPPED;
-#if defined (ACE_HAS_PACE)
-typedef pace_pthread_t ACE_thread_t;
-typedef pace_pid_t pid_t;
-#else /* !ACE_HAS_PACE */
typedef DWORD ACE_thread_t;
typedef long pid_t;
-#endif /* ACE_HAS_PACE */
-
typedef HANDLE ACE_hthread_t;
+
#define ACE_INVALID_PID ((pid_t) -1)
# if defined (ACE_HAS_TSS_EMULATION)
typedef DWORD ACE_OS_thread_key_t;
@@ -4094,7 +4088,7 @@ typedef fd_set ACE_FD_SET_TYPE;
# endif /* INET6_ADDRSTRLEN */
# if defined (ACE_LACKS_SIGSET)
-# if defined (ACE_HAS_PACE)
+# if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
typedef pace_sigset_t sigset_t;
# else
typedef u_int sigset_t;
diff --git a/ace/OS.i b/ace/OS.i
index 7684b82e0e0..00b787767b9 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -1210,7 +1210,7 @@ ACE_OS::shm_open (const ACE_TCHAR *filename,
LPSECURITY_ATTRIBUTES sa)
{
ACE_OS_TRACE ("ACE_OS::shm_open");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_UNUSED_ARG (sa);
ACE_OSCALL_RETURN (::pace_shm_open (filename, mode, perms), ACE_HANDLE, -1);
# elif defined (ACE_HAS_SHM_OPEN)
@@ -1226,7 +1226,7 @@ ACE_INLINE int
ACE_OS::shm_unlink (const ACE_TCHAR *path)
{
ACE_OS_TRACE ("ACE_OS::shm_unlink");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_shm_unlink (path), int, -1);
# elif defined (ACE_HAS_SHM_OPEN)
ACE_OSCALL_RETURN (::shm_unlink (path), int, -1);
@@ -1729,7 +1729,7 @@ ACE_INLINE int
ACE_OS::mutex_destroy (ACE_mutex_t *m)
{
ACE_OS_TRACE ("ACE_OS::mutex_destroy");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
int dummy_retval = 0;
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_mutex_destroy (m),
dummy_retval), int, -1);
@@ -1778,7 +1778,7 @@ ACE_INLINE int
ACE_OS::mutex_lock (ACE_mutex_t *m)
{
// ACE_OS_TRACE ("ACE_OS::mutex_lock");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
int dummy_retval = 0;
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_mutex_lock (m),
dummy_retval), int, -1);
@@ -1881,7 +1881,7 @@ ACE_INLINE int
ACE_OS::mutex_trylock (ACE_mutex_t *m)
{
ACE_OS_TRACE ("ACE_OS::mutex_trylock");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
int dummy_retval = 0;
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_mutex_trylock (m),
dummy_retval), int, -1);
@@ -2114,7 +2114,7 @@ ACE_INLINE int
ACE_OS::mutex_unlock (ACE_mutex_t *m)
{
ACE_OS_TRACE ("ACE_OS::mutex_unlock");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
int dummy_retval = 0;
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_mutex_unlock (m),
dummy_retval), int, -1);
@@ -2363,7 +2363,7 @@ ACE_INLINE int
ACE_OS::cond_destroy (ACE_cond_t *cv)
{
ACE_OS_TRACE ("ACE_OS::cond_destroy");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_cond_destroy (cv),
ace_result_), int, -1);
# elif defined (ACE_HAS_THREADS)
@@ -2390,7 +2390,7 @@ ACE_OS::condattr_init (ACE_condattr_t &attributes,
int type)
{
ACE_UNUSED_ARG (type);
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
int result = -1;
if (::pace_pthread_condattr_init (&attributes) == 0
@@ -2461,13 +2461,13 @@ ACE_OS::condattr_init (ACE_condattr_t &attributes,
ACE_UNUSED_ARG (attributes);
ACE_UNUSED_ARG (type);
ACE_NOTSUP_RETURN (-1);
-# endif /* ACE_HAS_PACE */
+# endif /* */
}
ACE_INLINE int
ACE_OS::condattr_destroy (ACE_condattr_t &attributes)
{
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
return ::pace_pthread_condattr_destroy (&attributes);
# elif defined (ACE_HAS_THREADS) && ! defined (__MACOSX__)
# if defined (ACE_HAS_PTHREADS)
@@ -2501,7 +2501,7 @@ ACE_OS::cond_init (ACE_cond_t *cv,
// ACE_OS_TRACE ("ACE_OS::cond_init");
ACE_UNUSED_ARG (name);
ACE_UNUSED_ARG (arg);
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_cond_init (cv, &attributes),
ace_result_), int, -1);
# elif defined (ACE_HAS_THREADS)
@@ -2580,7 +2580,7 @@ ACE_INLINE int
ACE_OS::cond_signal (ACE_cond_t *cv)
{
ACE_OS_TRACE ("ACE_OS::cond_signal");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_pthread_cond_signal (cv), int, -1);
# elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
@@ -2606,7 +2606,7 @@ ACE_INLINE int
ACE_OS::cond_broadcast (ACE_cond_t *cv)
{
ACE_OS_TRACE ("ACE_OS::cond_broadcast");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_pthread_cond_broadcast (cv), int, -1);
# elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
@@ -2636,7 +2636,7 @@ ACE_OS::cond_wait (ACE_cond_t *cv,
ACE_mutex_t *external_mutex)
{
ACE_OS_TRACE ("ACE_OS::cond_wait");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_pthread_cond_wait (cv, external_mutex), int, -1);
# elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
@@ -2797,7 +2797,7 @@ ACE_OS::cond_timedwait (ACE_cond_t *cv,
ACE_INLINE int
ACE_OS::thr_equal (ACE_thread_t t1, ACE_thread_t t2)
{
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
return ::pace_pthread_equal (t1, t2);
#elif defined (ACE_HAS_PTHREADS)
# if defined (pthread_equal)
@@ -2819,7 +2819,7 @@ ACE_INLINE void
ACE_OS::thr_self (ACE_hthread_t &self)
{
ACE_OS_TRACE ("ACE_OS::thr_self");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
self = ::pace_pthread_self ();
#elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
@@ -2845,7 +2845,7 @@ ACE_INLINE ACE_thread_t
ACE_OS::thr_self (void)
{
// ACE_OS_TRACE ("ACE_OS::thr_self");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
return ::pace_pthread_self ();
#elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
@@ -3074,7 +3074,7 @@ ACE_INLINE int
ACE_OS::sema_destroy (ACE_sema_t *s)
{
ACE_OS_TRACE ("ACE_OS::sema_destroy");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
int result;
if (s->name_)
{
@@ -3222,7 +3222,7 @@ ACE_OS::mmap (void *addr,
LPSECURITY_ATTRIBUTES sa)
{
ACE_OS_TRACE ("ACE_OS::mmap");
-#if defined (ACE_HAS_PACE) && !defined (__Lynx__)
+#if defined (ACE_HAS_PACE) && !defined (__Lynx__) && !defined (ACE_WIN32)
ACE_UNUSED_ARG (file_mapping);
ACE_UNUSED_ARG (sa);
ACE_OSCALL_RETURN ((void *) ::pace_mmap (addr,
@@ -3385,7 +3385,7 @@ ACE_OS::sema_init (ACE_sema_t *s,
LPSECURITY_ATTRIBUTES sa)
{
ACE_OS_TRACE ("ACE_OS::sema_init");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_UNUSED_ARG (arg);
ACE_UNUSED_ARG (max);
ACE_UNUSED_ARG (sa);
@@ -3616,7 +3616,7 @@ ACE_OS::sema_init (ACE_sema_t *s,
int max,
LPSECURITY_ATTRIBUTES sa)
{
-# if !defined (ACE_HAS_PACE) && defined (ACE_HAS_WTHREADS)
+# if defined (ACE_HAS_WTHREADS)
# if ! defined (ACE_USES_WINCE_SEMA_SIMULATION)
ACE_UNUSED_ARG (type);
ACE_UNUSED_ARG (arg);
@@ -3667,7 +3667,7 @@ ACE_OS::sema_init (ACE_sema_t *s,
}
return result;
# endif /* ACE_USES_WINCE_SEMA_SIMULATION */
-# else /* ACE_HAS_PACE && ACE_HAS_WTHREADS */
+# else /* ACE_HAS_WTHREADS */
// Just call the normal char version.
return ACE_OS::sema_init (s, count, type, ACE_Wide_To_Ascii (name).char_rep (), arg, max, sa);
# endif /* ACE_HAS_PACE && ACE_HAS_WTHREADS */
@@ -3678,7 +3678,7 @@ ACE_INLINE int
ACE_OS::sema_post (ACE_sema_t *s)
{
ACE_OS_TRACE ("ACE_OS::sema_post");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_sem_post (s->sema_), int, -1);
# elif defined (ACE_HAS_POSIX_SEM)
ACE_OSCALL_RETURN (::sem_post (s->sema_), int, -1);
@@ -3742,7 +3742,7 @@ ACE_OS::sema_post (ACE_sema_t *s, size_t release_count)
{
#if defined (ACE_WIN32) && !defined (ACE_USES_WINCE_SEMA_SIMULATION)
// Win32 supports this natively.
-# if defined (ACE_HAS_PACE)
+# if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_WIN32CALL_RETURN (ACE_ADAPT_RETVAL (::ReleaseSemaphore (*(s->sema_),
release_count, 0), ace_result_),
int, -1);
@@ -3770,7 +3770,7 @@ ACE_INLINE int
ACE_OS::sema_trywait (ACE_sema_t *s)
{
ACE_OS_TRACE ("ACE_OS::sema_trywait");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_sem_trywait (s->sema_), int, -1);
# elif defined (ACE_HAS_POSIX_SEM)
// POSIX semaphores set errno to EAGAIN if trywait fails
@@ -3884,7 +3884,7 @@ ACE_INLINE int
ACE_OS::sema_wait (ACE_sema_t *s)
{
ACE_OS_TRACE ("ACE_OS::sema_wait");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_sem_wait (s->sema_), int, -1);
# elif defined (ACE_HAS_POSIX_SEM)
ACE_OSCALL_RETURN (::sem_wait (s->sema_), int, -1);
@@ -7401,7 +7401,7 @@ ACE_OS::thr_continue (ACE_hthread_t target_thread)
ACE_INLINE int
ACE_OS::thr_cmp (ACE_hthread_t t1, ACE_hthread_t t2)
{
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
return ::pace_pthread_equal (t1, t2);
#elif defined (ACE_HAS_PTHREADS)
# if defined (pthread_equal)
@@ -7438,7 +7438,7 @@ ACE_INLINE int
ACE_OS::thr_getprio (ACE_hthread_t thr_id, int &prio)
{
ACE_OS_TRACE ("ACE_OS::thr_getprio");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
struct sched_param param;
int result;
int policy = 0;
@@ -7516,7 +7516,7 @@ ACE_OS::thr_getspecific (ACE_OS_thread_key_t key, void **data)
ACE_OS_TRACE ("ACE_OS::thr_getspecific");
// If we are using TSS emulation then we shuld use ACE's implementation
// of it and not make any PACE calls.
-//# if defined (ACE_HAS_PACE)
+//# if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
// *data = ::pace_pthread_getspecific (key);
// return 0;
//# elif defined (ACE_HAS_THREADS)
@@ -7653,7 +7653,7 @@ ACE_OS::thr_getspecific (ACE_thread_key_t key, void **data)
// ACE_OS_TRACE ("ACE_OS::thr_getspecific");
// If we are using TSS emulation then we shuld use ACE's implementation
// of it and not make any PACE calls.
-#if defined (ACE_HAS_PACE) && !defined (ACE_HAS_TSS_EMULATION)
+#if defined (ACE_HAS_PACE) && !defined (ACE_HAS_TSS_EMULATION) && !defined (ACE_WIN32)
*data = ::pace_pthread_getspecific (key);
return 0;
#elif defined (ACE_HAS_THREADS)
@@ -7728,10 +7728,7 @@ ACE_OS::thr_join (ACE_hthread_t thr_handle,
void **status)
{
ACE_OS_TRACE ("ACE_OS::thr_join");
-#if defined (ACE_HAS_PACE)
-# if defined (ACE_WIN32)
- int ace_result_ = 0;
-# endif /* ACE_WIN32) */
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN ( ACE_ADAPT_RETVAL (::pace_pthread_join
(thr_handle, status),
ace_result_), int, -1);
@@ -7808,10 +7805,7 @@ ACE_OS::thr_join (ACE_thread_t waiter_id,
void **status)
{
ACE_OS_TRACE ("ACE_OS::thr_join");
-#if defined (ACE_HAS_PACE)
-# if defined (ACE_WIN32)
- int ace_result_ = 0;
-# endif /* ACE_WIN32 */
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_UNUSED_ARG (thr_id);
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_join
(waiter_id, status),
@@ -7860,10 +7854,7 @@ ACE_INLINE int
ACE_OS::thr_setcancelstate (int new_state, int *old_state)
{
ACE_OS_TRACE ("ACE_OS::thr_setcancelstate");
-#if defined (ACE_HAS_PACE)
-# if defined (ACE_WIN32)
- int ace_result_ = 0;
-# endif /* ACE_WIN32 */
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_setcancelstate
(new_state, old_state),
ace_result_), int, -1);
@@ -7909,10 +7900,7 @@ ACE_INLINE int
ACE_OS::thr_setcanceltype (int new_type, int *old_type)
{
ACE_OS_TRACE ("ACE_OS::thr_setcanceltype");
-#if defined (ACE_HAS_PACE)
-# if defined (ACE_WIN32)
- int ace_result_ = 0;
-# endif /* ACE_WIN32 */
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_setcanceltype
(new_type, old_type),
ace_result_), int, -1);
@@ -7950,10 +7938,7 @@ ACE_INLINE int
ACE_OS::thr_cancel (ACE_thread_t thr_id)
{
ACE_OS_TRACE ("ACE_OS::thr_cancel");
-#if defined (ACE_HAS_PACE)
-# if defined (ACE_WIN32)
- int ace_result_ = 0;
-# endif /* ACE_WIN32 */
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_cancel (thr_id),
ace_result_), int, -1);
#elif defined (ACE_HAS_THREADS)
@@ -7982,7 +7967,7 @@ ACE_OS::sigwait (sigset_t *set, int *sig)
int local_sig;
if (sig == 0)
sig = &local_sig;
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
errno = ::pace_sigwait (set, sig);
return errno == 0 ? *sig : -1;
#elif defined (ACE_HAS_THREADS)
@@ -8044,7 +8029,7 @@ ACE_OS::sigtimedwait (const sigset_t *set,
const ACE_Time_Value *timeout)
{
ACE_OS_TRACE ("ACE_OS::sigtimedwait");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
timespec ts;
timespec *tsp;
if (timeout !=0)
@@ -8105,10 +8090,7 @@ ACE_OS::thr_sigsetmask (int how,
sigset_t *osm)
{
ACE_OS_TRACE ("ACE_OS::thr_sigsetmask");
-#if defined (ACE_HAS_PACE)
-# if defined (ACE_WIN32)
- int ace_result_ = 0;
-# endif /* ACE_WIN32 */
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_sigmask
(how, nsm, osm),
ace_result_), int, -1);
@@ -8193,10 +8175,7 @@ ACE_INLINE int
ACE_OS::thr_kill (ACE_thread_t thr_id, int signum)
{
ACE_OS_TRACE ("ACE_OS::thr_kill");
-#if defined (ACE_HAS_PACE)
-# if defined (ACE_WIN32)
- int ace_result_ = 0;
-# endif /* ACE_WIN32 */
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_kill (thr_id, signum),
ace_result_), int, -1);
#elif defined (ACE_HAS_THREADS)
@@ -8319,7 +8298,7 @@ ACE_INLINE int
ACE_OS::thr_setprio (ACE_hthread_t thr_id, int prio)
{
ACE_OS_TRACE ("ACE_OS::thr_setprio");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
struct sched_param param;
int policy = 0;
int result;
@@ -8430,7 +8409,7 @@ ACE_INLINE void
ACE_OS::thr_yield (void)
{
ACE_OS_TRACE ("ACE_OS::thr_yield");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
::pace_sched_yield ();
#elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_STHREADS)
@@ -9478,7 +9457,7 @@ ACE_INLINE int
ACE_OS::munmap (void *addr, size_t len)
{
ACE_OS_TRACE ("ACE_OS::munmap");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_munmap (addr, len), int, -1);
#elif defined (ACE_WIN32)
ACE_UNUSED_ARG (len);
@@ -11666,7 +11645,7 @@ ACE_INLINE int
ACE_OS::sigaddset (sigset_t *s, int signum)
{
ACE_OS_TRACE ("ACE_OS::sigaddset");
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_sigaddset (s, signum), int, -1);
#elif defined (ACE_LACKS_SIGSET) || defined (ACE_LACKS_SIGSET_DEFINITIONS)
if (s == NULL)
@@ -11698,7 +11677,7 @@ ACE_OS::sigaddset (sigset_t *s, int signum)
ACE_INLINE int
ACE_OS::sigdelset (sigset_t *s, int signum)
{
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_sigdelset (s, signum), int, -1);
#elif defined (ACE_LACKS_SIGSET) || defined (ACE_LACKS_SIGSET_DEFINITIONS)
if (s == NULL)
@@ -11730,7 +11709,7 @@ ACE_OS::sigdelset (sigset_t *s, int signum)
ACE_INLINE int
ACE_OS::sigemptyset (sigset_t *s)
{
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_sigemptyset (s), int, -1);
#elif defined (ACE_LACKS_SIGSET) || defined (ACE_LACKS_SIGSET_DEFINITIONS)
if (s == NULL)
@@ -11753,7 +11732,7 @@ ACE_OS::sigemptyset (sigset_t *s)
ACE_INLINE int
ACE_OS::sigfillset (sigset_t *s)
{
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_sigfillset (s), int, -1);
#elif defined (ACE_LACKS_SIGSET) || defined (ACE_LACKS_SIGSET_DEFINITIONS)
if (s == NULL)
@@ -11776,7 +11755,7 @@ ACE_OS::sigfillset (sigset_t *s)
ACE_INLINE int
ACE_OS::sigismember (sigset_t *s, int signum)
{
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_sigismember (s, signum), int, -1);
#elif defined (ACE_LACKS_SIGSET) || defined (ACE_LACKS_SIGSET_DEFINITIONS)
if (s == NULL)
@@ -11814,7 +11793,7 @@ ACE_OS::sigismember (sigset_t *s, int signum)
ACE_INLINE int
ACE_OS::sigsuspend (const sigset_t *sigset)
{
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_sigsuspend (sigset), int, -1);
#elif defined (ACE_HAS_SIGSUSPEND)
sigset_t s;
@@ -11834,7 +11813,7 @@ ACE_OS::sigsuspend (const sigset_t *sigset)
ACE_INLINE int
ACE_OS::sigprocmask (int how, const sigset_t *nsp, sigset_t *osp)
{
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (::pace_sigprocmask (how, nsp, osp), int, -1);
#elif defined (ACE_LACKS_SIGSET) || defined (ACE_LACKS_SIGSET_DEFINITIONS)
ACE_UNUSED_ARG (how);
@@ -11853,10 +11832,7 @@ ACE_OS::sigprocmask (int how, const sigset_t *nsp, sigset_t *osp)
ACE_INLINE int
ACE_OS::pthread_sigmask (int how, const sigset_t *nsp, sigset_t *osp)
{
-#if defined (ACE_HAS_PACE)
-# if defined (ACE_WIN32)
- int ace_result_ = 0;
-# endif /* ACE_WIN32 */
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pace_pthread_sigmask (how, nsp, osp),
ace_result_), int, -1);
#elif defined (ACE_HAS_PTHREADS_STD) && !defined (ACE_LACKS_PTHREAD_SIGMASK)
diff --git a/ace/config-all.h b/ace/config-all.h
index 87736e7591c..2681301dae1 100644
--- a/ace/config-all.h
+++ b/ace/config-all.h
@@ -574,7 +574,7 @@ typedef void *(*ACE_THR_C_FUNC)(void *);
// ============================================================================
// PACE macros
// ============================================================================
-#if defined (ACE_HAS_PACE)
+#if defined (ACE_HAS_PACE) && !defined (ACE_WIN32)
# define ACE_HAS_POSIX_SEM
#endif /* ACE_HAS_PACE */