summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/conddefaultattributes.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-02-29 10:25:42 -0600
committerJoel Sherrill <joel@rtems.org>2016-04-14 16:28:10 -0500
commit714efce48abdb4c39f91010e50fad46cac5c889e (patch)
tree3340a03019149d19cae1129fcca72656bc232d28 /cpukit/posix/src/conddefaultattributes.c
parentposix/src/condattr*etpshared.c: Clean up and improve comments (diff)
downloadrtems-714efce48abdb4c39f91010e50fad46cac5c889e.tar.bz2
conddefaultattributes.c: Add default clock to structure.
Diffstat (limited to 'cpukit/posix/src/conddefaultattributes.c')
-rw-r--r--cpukit/posix/src/conddefaultattributes.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/cpukit/posix/src/conddefaultattributes.c b/cpukit/posix/src/conddefaultattributes.c
index 84fdbc875f..9b0837e793 100644
--- a/cpukit/posix/src/conddefaultattributes.c
+++ b/cpukit/posix/src/conddefaultattributes.c
@@ -6,7 +6,7 @@
*/
/*
- * COPYRIGHT (c) 1989-2007.
+ * COPYRIGHT (c) 1989-2007, 2016.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,18 +19,17 @@
#endif
#include <pthread.h>
-#include <errno.h>
#include <rtems/system.h>
-#include <rtems/score/watchdog.h>
-#include <rtems/posix/condimpl.h>
-#include <rtems/posix/muteximpl.h>
/*
* The default condition variable attributes structure.
*/
const pthread_condattr_t _POSIX_Condition_variables_Default_attributes = {
- true, /* is_initialized */
- PTHREAD_PROCESS_PRIVATE /* process_shared */
+ .is_initialized = true,
+ .clock = CLOCK_REALTIME,
+#if defined(_POSIX_THREAD_PROCESS_SHARED)
+ .process_shared = PTHREAD_PROCESS_PRIVATE
+#endif
};