summaryrefslogtreecommitdiffstats
path: root/c/src/librtems++/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-16 15:58:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-16 15:58:50 +0000
commitbbd7ea22e18e7527011c9361be34a7bbdb0eb318 (patch)
treee7c33f8bdc8f581332c5942636e13dad71744331 /c/src/librtems++/src
parent2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-bbd7ea22e18e7527011c9361be34a7bbdb0eb318.tar.bz2
2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems++/rtemsEvent.h, include/rtems++/rtemsMessageQueue.h, include/rtems++/rtemsSemaphore.h, src/rtemsTask.cc: Use public API not _TOD_Microseconds_per_tick.
Diffstat (limited to 'c/src/librtems++/src')
-rw-r--r--c/src/librtems++/src/rtemsTask.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/librtems++/src/rtemsTask.cc b/c/src/librtems++/src/rtemsTask.cc
index de02dba9c6..928cfc93f7 100644
--- a/c/src/librtems++/src/rtemsTask.cc
+++ b/c/src/librtems++/src/rtemsTask.cc
@@ -232,8 +232,8 @@ const rtems_status_code rtemsTask::resume()
const rtems_status_code rtemsTask::wake_after(const rtems_interval micro_secs)
{
rtems_interval usecs =
- micro_secs && (micro_secs < _TOD_Microseconds_per_tick) ?
- _TOD_Microseconds_per_tick : micro_secs;
+ (micro_secs < rtems_configuration_get_microseconds_per_tick()) ?
+ rtems_configuration_get_microseconds_per_tick() : micro_secs;
return set_status_code(rtems_task_wake_after(TOD_MICROSECONDS_TO_TICKS(usecs)));
}