diff options
author | venkita <venkita@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-08-14 00:54:44 +0000 |
---|---|---|
committer | venkita <venkita@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-08-14 00:54:44 +0000 |
commit | bc1e19109c52c684382fb5d9aff14b03fea42cfa (patch) | |
tree | b952cc46312c39415f1b4e4f50886fe82b1470bd /Kokyu/Dispatcher_Task.cpp | |
parent | 45ae306eeb862760fcc71e55a82ac46403d52d06 (diff) | |
download | ATCD-bc1e19109c52c684382fb5d9aff14b03fea42cfa.tar.gz |
ChangeLogTag: Wed Aug 13 19:48:17 2003 Venkita Subramonian <venkita@cs.wustl.edu>
Diffstat (limited to 'Kokyu/Dispatcher_Task.cpp')
-rw-r--r-- | Kokyu/Dispatcher_Task.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Kokyu/Dispatcher_Task.cpp b/Kokyu/Dispatcher_Task.cpp index e0dd4b2d9ad..3897c2e7941 100644 --- a/Kokyu/Dispatcher_Task.cpp +++ b/Kokyu/Dispatcher_Task.cpp @@ -53,6 +53,28 @@ int Dispatcher_Task::svc (void) { int done = 0; + + ACE_hthread_t thr_handle; + ACE_Thread::self (thr_handle); + int prio; + + if (ACE_Thread::getprio (thr_handle, prio) == -1) + { + if (errno == ENOTSUP) + { + ACE_DEBUG((LM_DEBUG, + ACE_TEXT ("getprio not supported on this platform\n") + )); + return 0; + } + ACE_ERROR_RETURN ((LM_ERROR, + ACE_TEXT ("%p\n"), + ACE_TEXT ("getprio failed")), + -1); + } + + ACE_DEBUG ((LM_DEBUG, "(%t) Dispatcher Thread started prio=%d\n", prio)); + while (!done) { ACE_Message_Block *mb; |