summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuangming <huangminghuang@users.noreply.github.com>2003-11-26 03:53:08 +0000
committerhuangming <huangminghuang@users.noreply.github.com>2003-11-26 03:53:08 +0000
commit98b9e057ad146a6c27cc8c6756c48ec64f322cb8 (patch)
treedf53966925c9f801215f4ed23ef63e20800d0c07
parent183eb70de16b85096480d723bc1e6c6f127e0058 (diff)
downloadATCD-98b9e057ad146a6c27cc8c6756c48ec64f322cb8.tar.gz
*** empty log message ***
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/RT_Task.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/RT_Task.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/RT_Task.cpp
index 4398d6a233d..e716faca87d 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/RT_Task.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/RT_Task.cpp
@@ -5,7 +5,10 @@
void RT_Task::set_current()
{
- if (ACE_OS::thr_setprio(ACE_SCHED_FIFO) == -1){
+ ACE_hthread_t thr_handle;
+ ACE_Thread::self (thr_handle);
+ long prio = ACE_Sched_Params::priority_max(ACE_SCHED_FIFO);
+ if (ACE_OS::thr_setprio(thr_handle, prio, ACE_SCHED_FIFO) == -1){
ACE_DEBUG((LM_DEBUG, "Cannot set the thread to RT class\n"));
}
}