summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-11 20:47:43 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-11 20:47:43 +0000
commit51694cf342f6258767724c39846d9388cef3f7ea (patch)
tree413fdbcfde6ffcd60929b33e8eaa10f47a8e1836
parent435a4c4cda927f5c06ea8581b57059bb3a1b2514 (diff)
downloadATCD-51694cf342f6258767724c39846d9388cef3f7ea.tar.gz
added ACE_THR_PRI_OTHER_DEF for NT, because MT_Cubit uses it.
-rw-r--r--ace/OS.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/ace/OS.h b/ace/OS.h
index 32d82519d54..b00045a4782 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -2386,9 +2386,11 @@ protected:
typedef rwlock_t ACE_rwlock_t;
# endif /* ACE_LACKS_RWLOCK_T */
-// #define ACE_THR_PRI_FIFO_DEF on all threaded platforms, if not defined
-// above or in the individual platform config file. It should be used by
-// applications for a default real-time thread priority.
+// Define some default thread priorities on all threaded platforms, if
+// not defined above or in the individual platform config file.
+// ACE_THR_PRI_FIFO_DEF should be used by applications for default
+// real-time thread priority. ACE_THR_PRI_OTHER_DEF should be used
+// for non-real-time priority.
# if !defined(ACE_THR_PRI_FIFO_DEF)
# if defined (ACE_WTHREADS)
// It would be more in spirit to use THREAD_PRIORITY_NORMAL. But,
@@ -2401,6 +2403,18 @@ typedef rwlock_t ACE_rwlock_t;
# endif /* ! ACE_WTHREADS */
# endif /* ! ACE_THR_PRI_FIFO_DEF */
+# if !defined(ACE_THR_PRI_OTHER_DEF)
+# if defined (ACE_WTHREADS)
+ // It would be more in spirit to use THREAD_PRIORITY_NORMAL. But,
+ // using THREAD_PRIORITY_ABOVE_NORMAL should give preference to the
+ // threads in this process, even if the process is not in the
+ // REALTIME_PRIORITY_CLASS.
+# define ACE_THR_PRI_OTHER_DEF THREAD_PRIORITY_NORMAL
+# else /* ! ACE_WTHREADS */
+# define ACE_THR_PRI_OTHER_DEF 0
+# endif /* ! ACE_WTHREADS */
+# endif /* ! ACE_THR_PRI_OTHER_DEF */
+
#if defined (ACE_HAS_RECURSIVE_MUTEXES)
typedef ACE_thread_mutex_t ACE_recursive_thread_mutex_t;
#else