diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-16 15:58:50 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-16 15:58:50 +0000 |
commit | bbd7ea22e18e7527011c9361be34a7bbdb0eb318 (patch) | |
tree | e7c33f8bdc8f581332c5942636e13dad71744331 /c/src/librtems++/include/rtems++/rtemsSemaphore.h | |
parent | 2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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 '')
-rw-r--r-- | c/src/librtems++/include/rtems++/rtemsSemaphore.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/c/src/librtems++/include/rtems++/rtemsSemaphore.h b/c/src/librtems++/include/rtems++/rtemsSemaphore.h index be68a0513e..cadf4288b8 100644 --- a/c/src/librtems++/include/rtems++/rtemsSemaphore.h +++ b/c/src/librtems++/include/rtems++/rtemsSemaphore.h @@ -128,9 +128,10 @@ private: const rtems_status_code rtemsSemaphore::obtain(const bool wait, const uint32_t micro_secs) { - rtems_interval usecs = - micro_secs && (micro_secs < _TOD_Microseconds_per_tick) ? - _TOD_Microseconds_per_tick : micro_secs; + rtems_interval usecs = micro_secs && + (micro_secs < rtems_configuration_get_microseconds_per_tick()) ? + rtems_configuration_get_microseconds_per_tick() : micro_secs; + return set_status_code(rtems_semaphore_obtain(id, wait ? RTEMS_WAIT : RTEMS_NO_WAIT, |