diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-04-30 08:55:41 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-04-30 08:55:41 +0000 |
commit | 068a8240c67cb1dff6237c475828123dae0889c3 (patch) | |
tree | 0cfac94253076eb7a5167f21c9a527f16b5f88cb /cpukit/libcsupport/src/envlock.c | |
parent | 2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-068a8240c67cb1dff6237c475828123dae0889c3.tar.bz2 |
2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio_.h, libcsupport/src/envlock.c,
libcsupport/src/libio.c: Added and use rtems_libio_lock() and
rtems_libio_unlock(). Cleaned up includes and declarations. Do not
use RTEMS_NO_PRIORITY for unused ceiling priority in
rtems_semaphore_create().
Diffstat (limited to 'cpukit/libcsupport/src/envlock.c')
-rw-r--r-- | cpukit/libcsupport/src/envlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/envlock.c b/cpukit/libcsupport/src/envlock.c index 32fb78f0d5..9594e0abe3 100644 --- a/cpukit/libcsupport/src/envlock.c +++ b/cpukit/libcsupport/src/envlock.c @@ -97,12 +97,12 @@ __env_unlock(struct _reent *r) void __env_lock(struct _reent *r __attribute__((unused))) { - rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); + rtems_libio_lock(); } void __env_unlock(struct _reent *r __attribute__((unused))) { - rtems_semaphore_release( rtems_libio_semaphore ); + rtems_libio_unlock(); } #endif |