diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-01-09 06:13:32 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-07 08:58:31 +0100 |
commit | 2fd3111708e92f683039d651dd1d756da3f4a8c2 (patch) | |
tree | c738b797834f0b4f7caf4c098594538114b85ad4 /cpukit/include/rtems/stdio-redirect.h | |
parent | syslog: Use self-contained recursive mutex (diff) | |
download | rtems-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.h | 3 |
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. */ |