summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtl
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-03 06:36:10 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-02-07 08:58:30 +0100
commitd9800ac58d8da580053845c61f1633aec4fb107e (patch)
treed214e90198ba69edf30ae165bd91d2671a9cd529 /cpukit/include/rtems/rtl
parentftpd: Use self-contained synchronization objects (diff)
downloadrtems-d9800ac58d8da580053845c61f1633aec4fb107e.tar.bz2
libdl: Use self-contained recursive mutex
Update #2843.
Diffstat (limited to 'cpukit/include/rtems/rtl')
-rw-r--r--cpukit/include/rtems/rtl/rtl.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/cpukit/include/rtems/rtl/rtl.h b/cpukit/include/rtems/rtl/rtl.h
index fe9a7df081..513a6741aa 100644
--- a/cpukit/include/rtems/rtl/rtl.h
+++ b/cpukit/include/rtems/rtl/rtl.h
@@ -20,8 +20,8 @@
#define _RTEMS_RTL_H_
#include <link.h>
-#include <rtems.h>
#include <rtems/chain.h>
+#include <rtems/thread.h>
#include <rtems/rtl/rtl-allocator.h>
#include <rtems/rtl/rtl-fwd.h>
@@ -96,7 +96,7 @@ typedef void (*rtems_rtl_cdtor_t)(void);
*/
struct rtems_rtl_data_s
{
- rtems_id lock; /**< The RTL lock id */
+ rtems_recursive_mutex lock; /**< The RTL lock */
rtems_rtl_alloc_data_t allocator; /**< The allocator data. */
rtems_chain_control objects; /**< List if loaded object files. */
const char* paths; /**< Search paths for archives. */
@@ -183,11 +183,8 @@ rtems_rtl_data_t* rtems_rtl_lock (void);
/**
* Unlock the Run-time Linker.
- *
- * @return True The RTL is unlocked.
- * @return False The RTL could not be unlocked. Not much you can do.
*/
-bool rtems_rtl_unlock (void);
+void rtems_rtl_unlock (void);
/**
* Check a pointer is a valid object file descriptor returning the pointer as