summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/pipe.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-12-14 06:12:59 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-02-02 15:01:23 +0100
commit8ddd92d56ae7c30f086f69c8e2930b44c5a44f1c (patch)
tree5b55169bc1b359243d6f2883aeb7d40649479c25 /cpukit/include/rtems/pipe.h
parentRFS: Use self-contained recursive mutex (diff)
downloadrtems-8ddd92d56ae7c30f086f69c8e2930b44c5a44f1c.tar.bz2
pipe: Use self-contained mutex
Update #2843.
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/pipe.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/include/rtems/pipe.h b/cpukit/include/rtems/pipe.h
index 7c6566ad50..a2df29c2c3 100644
--- a/cpukit/include/rtems/pipe.h
+++ b/cpukit/include/rtems/pipe.h
@@ -19,6 +19,7 @@
#define _RTEMS_PIPE_H
#include <rtems/libio.h>
+#include <rtems/thread.h>
/**
* @defgroup FIFO_PIPE FIFO/Pipe File System Support
@@ -45,7 +46,7 @@ typedef struct pipe_control {
unsigned int waitingWriters;
unsigned int readerCounter; /* incremental counters */
unsigned int writerCounter; /* for differentiation of successive opens */
- rtems_id Semaphore;
+ rtems_mutex Mutex;
rtems_id readBarrier; /* wait queues */
rtems_id writeBarrier;
#if 0