summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-21 21:26:55 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-21 21:26:55 +0000
commit0ecc5ad93dc46429d1eb5b88bcf38c69ec771829 (patch)
tree20ab1f8e407507da3d2137d18c70cc4f4d7e0414
parent99fc77bd502b2a8e46aa0eadf5b1a7d3bb6655ba (diff)
downloadATCD-0ecc5ad93dc46429d1eb5b88bcf38c69ec771829.tar.gz
use THR_SCHED_FIFO unconditionally now that it's defined on all platforms
-rw-r--r--tests/Priority_Task_Test.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/Priority_Task_Test.cpp b/tests/Priority_Task_Test.cpp
index 8361cda9f4b..5d8f9c7163f 100644
--- a/tests/Priority_Task_Test.cpp
+++ b/tests/Priority_Task_Test.cpp
@@ -48,12 +48,9 @@ Priority_Task::open (void *arg)
this->priority_ = *(int *) arg;
long flags = THR_NEW_LWP;
-#if defined (THR_SCHED_FIFO)
- // To get FIFO scheduling with PTHREADS. Instead of doing this,
- // OS.h should be fixed to defined THR_SCHED_FIFO on non-PTHREADS
- // platforms, such as Solaris with STHREADS and without PTHREADS.
+
+ // To get FIFO scheduling with PTHREADS.
flags |= THR_SCHED_FIFO;
-#endif /* THR_SCHED_FIFO */
// Become an active object.
if (this->activate (flags, 1, 0, this->priority_) == -1)