From 2fd3111708e92f683039d651dd1d756da3f4a8c2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 9 Jan 2018 06:13:32 +0100 Subject: stdio-redirector: Use self-contained mutex Update #2843. --- cpukit/include/rtems/stdio-redirect.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/include/rtems/stdio-redirect.h') 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 #include +#include #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. */ -- cgit v1.2.3