summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/stdio-redirect.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-09 06:13:32 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-02-07 08:58:31 +0100
commit2fd3111708e92f683039d651dd1d756da3f4a8c2 (patch)
treec738b797834f0b4f7caf4c098594538114b85ad4 /cpukit/include/rtems/stdio-redirect.h
parentsyslog: Use self-contained recursive mutex (diff)
downloadrtems-2fd3111708e92f683039d651dd1d756da3f4a8c2.tar.bz2
stdio-redirector: Use self-contained mutex
Update #2843.
Diffstat (limited to 'cpukit/include/rtems/stdio-redirect.h')
-rw-r--r--cpukit/include/rtems/stdio-redirect.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/include/rtems/stdio-redirect.h b/cpukit/include/rtems/stdio-redirect.h
index 6f1d4cdd98..e78448c2ac 100644
--- a/cpukit/include/rtems/stdio-redirect.h
+++ b/cpukit/include/rtems/stdio-redirect.h
@@ -42,6 +42,7 @@
#include <stdbool.h>
#include <rtems.h>
+#include <rtems/thread.h>
#ifdef __cplusplus
extern "C" {
@@ -63,7 +64,7 @@ typedef struct
{
volatile uint32_t state; /**< The state. */
rtems_id reader; /**< The reader thread. */
- rtems_id lock; /**< Lock for this struct. */
+ rtems_mutex lock; /**< Lock for this struct. */
int fd; /**< The file descriptor to redirect. */
int fd_dup; /**< Duplicated fd to write to. */
int pipe[2]; /**< The pipe to the reader thread. */