diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2010-08-31 19:55:13 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2010-08-31 19:55:13 +0000 |
commit | 17bd357ad490bf4fcf0d8dd94292f2c0a86d9751 (patch) | |
tree | 5a29da8f400ff2269bb1dc61f8142647bfe2e376 | |
parent | 9a902d3c175aeb0c32358418505a7afc096e44b7 (diff) | |
download | ATCD-17bd357ad490bf4fcf0d8dd94292f2c0a86d9751.tar.gz |
Tue Aug 31 19:54:21 UTC 2010 William R. Otte <wotte@dre.vanderbilt.edu>
* DAnCE/LocalityManager/Configuration/Process_Priority.cpp:
Fix for windows compilation.
-rw-r--r-- | CIAO/ChangeLog | 6 | ||||
-rw-r--r-- | CIAO/DAnCE/LocalityManager/Configuration/Process_Priority.cpp | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/CIAO/ChangeLog b/CIAO/ChangeLog index 34c463a1c16..4683db5b2ca 100644 --- a/CIAO/ChangeLog +++ b/CIAO/ChangeLog @@ -1,3 +1,9 @@ +Tue Aug 31 19:54:21 UTC 2010 William R. Otte <wotte@dre.vanderbilt.edu> + + * DAnCE/LocalityManager/Configuration/Process_Priority.cpp: + + Fix for windows compilation. + Tue Aug 31 15:06:49 UTC 2010 Adam Mitz <mitza@ociweb.com> * DAnCE/DAnCE/DAnCE_Core.mpc: diff --git a/CIAO/DAnCE/LocalityManager/Configuration/Process_Priority.cpp b/CIAO/DAnCE/LocalityManager/Configuration/Process_Priority.cpp index e30c97b66e0..8edab92cab4 100644 --- a/CIAO/DAnCE/LocalityManager/Configuration/Process_Priority.cpp +++ b/CIAO/DAnCE/LocalityManager/Configuration/Process_Priority.cpp @@ -38,8 +38,13 @@ namespace DAnCE "Unable to extract priority value from config property."); } - int retval = ACE_OS::thr_setprio (ACE_OS::thr_self (), - static_cast<int> (prio)); + ACE_hthread_t handle; + + ACE_OS::thr_self (handle); + + int retval = ACE_OS::thr_setprio (handle, + static_cast<int> (prio), + -1); if (retval != 0) { |