[rtems commit] conddefaultattributes.c: Add default clock to structure.
Joel Sherrill
joel at rtems.org
Thu Apr 14 21:28:25 UTC 2016
Module: rtems
Branch: master
Commit: 714efce48abdb4c39f91010e50fad46cac5c889e
Changeset: http://git.rtems.org/rtems/commit/?id=714efce48abdb4c39f91010e50fad46cac5c889e
Author: Joel Sherrill <joel at rtems.org>
Date: Mon Feb 29 10:25:42 2016 -0600
conddefaultattributes.c: Add default clock to structure.
---
cpukit/posix/src/conddefaultattributes.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/cpukit/posix/src/conddefaultattributes.c b/cpukit/posix/src/conddefaultattributes.c
index 84fdbc8..9b0837e 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
};
More information about the vc
mailing list