summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-08 13:10:24 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-12 08:11:08 +0200
commit62c912e15581e8d2dee9300b99e0532614f5c7e5 (patch)
tree13c016c8a4e309715aba28d13a3dcc45db698b79 /cpukit/posix/include
parenti2c: TMP112 correct the function name to set the config. (diff)
downloadrtems-62c912e15581e8d2dee9300b99e0532614f5c7e5.tar.bz2
posix: Use mutex object itself for condvar
We should only use the address used to initialize the mutex object according to POSIX, "2.9.9 Synchronization Object Copies and Alternative Mappings". http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_09 Update #3113.
Diffstat (limited to 'cpukit/posix/include')
-rw-r--r--cpukit/posix/include/rtems/posix/cond.h2
-rw-r--r--cpukit/posix/include/rtems/posix/condimpl.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/include/rtems/posix/cond.h b/cpukit/posix/include/rtems/posix/cond.h
index bbb80ef362..52b9a59929 100644
--- a/cpukit/posix/include/rtems/posix/cond.h
+++ b/cpukit/posix/include/rtems/posix/cond.h
@@ -43,7 +43,7 @@ extern "C" {
typedef struct {
Objects_Control Object;
Thread_queue_Control Wait_queue;
- pthread_mutex_t mutex;
+ pthread_mutex_t *mutex;
clockid_t clock;
} POSIX_Condition_variables_Control;
diff --git a/cpukit/posix/include/rtems/posix/condimpl.h b/cpukit/posix/include/rtems/posix/condimpl.h
index b71b6f0eae..e9375c1075 100644
--- a/cpukit/posix/include/rtems/posix/condimpl.h
+++ b/cpukit/posix/include/rtems/posix/condimpl.h
@@ -31,7 +31,7 @@ extern "C" {
* Constant to indicate condition variable does not currently have
* a mutex assigned to it.
*/
-#define POSIX_CONDITION_VARIABLES_NO_MUTEX 0
+#define POSIX_CONDITION_VARIABLES_NO_MUTEX NULL
#define POSIX_CONDITION_VARIABLES_TQ_OPERATIONS &_Thread_queue_Operations_FIFO