summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-21 21:26:04 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-21 21:26:04 +0000
commit99fc77bd502b2a8e46aa0eadf5b1a7d3bb6655ba (patch)
tree24b975daea34936eb16c17080375688431a81b2a
parent9c0a2ab9f4ef76e4bd4089bf7a825c3d4e8f10ed (diff)
downloadATCD-99fc77bd502b2a8e46aa0eadf5b1a7d3bb6655ba.tar.gz
added THR_JOINABLE and THR_SCHED_FIFO/RR/DEFAULT to STHREADS, WTHREADS, and non-threaded platforms. Also, set NSIG to _NSIGS + 1 on VxWorks
-rw-r--r--ace/OS.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/ace/OS.h b/ace/OS.h
index 832c9a7d712..5b78fcdff1d 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -1307,6 +1307,7 @@ typedef sema_t ACE_sema_t;
# endif /* !ACE_HAS_POSIX_SEM */
# endif /* !ACE_HAS_STHREADS */
#elif defined (ACE_HAS_STHREADS)
+// Solaris threads, without PTHREADS.
// Typedefs to help compatibility with Windows NT and Pthreads.
typedef thread_t ACE_thread_t;
typedef thread_key_t ACE_thread_key_t;
@@ -1323,6 +1324,10 @@ typedef ACE_mutex_t ACE_thread_mutex_t;
# define THR_CANCEL_ENABLE 0
# define THR_CANCEL_DEFERRED 0
# define THR_CANCEL_ASYNCHRONOUS 0
+# define THR_JOINABLE 0
+# define THR_SCHED_FIFO 0
+# define THR_SCHED_RR 0
+# define THR_SCHED_DEFAULT 0
#elif defined (VXWORKS)
// For mutex implementation using mutual-exclusion semaphores (which
// can be taken recursively).
@@ -1346,7 +1351,7 @@ struct sockaddr_un {
#define MAXPATHLEN 1024
#define MAXNAMLEN 255
-#define NSIG _NSIGS
+#define NSIG (_NSIGS + 1)
// task options: the other options are either obsolete, internal, or for
// Fortran or Ada support
@@ -1417,6 +1422,9 @@ typedef HANDLE ACE_sema_t;
# define THR_JOINABLE 0 /* ?? ignore in most places */
# define THR_SUSPENDED CREATE_SUSPENDED
# define THR_USE_AFX 0x01000000
+# define THR_SCHED_FIFO 0
+# define THR_SCHED_RR 0
+# define THR_SCHED_DEFAULT 0
#endif /* ACE_HAS_DCETHREADS || ACE_HAS_PTHREADS */
#if defined (ACE_LACKS_COND_T)
@@ -1511,11 +1519,15 @@ typedef rwlock_t ACE_rwlock_t;
#define THR_CANCEL_ENABLE 0
#define THR_CANCEL_DEFERRED 0
#define THR_CANCEL_ASYNCHRONOUS 0
+#define THR_JOINABLE 0 /* ?? ignore in most places */
#define THR_DETACHED 0 /* ?? ignore in most places */
#define THR_DAEMON 0 /* ?? ignore in most places */
#define THR_BOUND 0 /* ?? ignore in most places */
#define THR_NEW_LWP 0 /* ?? ignore in most places */
#define THR_SUSPENDED 0 /* ?? ignore in most places */
+#define THR_SCHED_FIFO 0
+#define THR_SCHED_RR 0
+#define THR_SCHED_DEFAULT 0
#define USYNC_THREAD 0
#define USYNC_PROCESS 0
// These are dummies needed for class OS.h