[rtems commit] pthread.c: Use UINT32_MAX rather than constant value
Joel Sherrill
joel at rtems.org
Tue Dec 10 01:46:24 UTC 2013
Module: rtems
Branch: master
Commit: 8ae999c38b7df297beb2c79783a3e8dfa0aec122
Changeset: http://git.rtems.org/rtems/commit/?id=8ae999c38b7df297beb2c79783a3e8dfa0aec122
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Dec 9 15:28:55 2013 -0600
pthread.c: Use UINT32_MAX rather than constant value
---
cpukit/posix/src/pthread.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index 55a38a4..5988a5e 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -138,7 +138,7 @@ void _POSIX_Threads_Sporadic_budget_callout(
* This will prevent the thread from consuming its entire "budget"
* while at low priority.
*/
- the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
+ the_thread->cpu_time_budget = UINT32_MAX;
new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority);
the_thread->real_priority = new_priority;
More information about the vc
mailing list