diff options
Diffstat (limited to 'c/src/exec/posix/src/mutexdefaultattributes.c')
-rw-r--r-- | c/src/exec/posix/src/mutexdefaultattributes.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/c/src/exec/posix/src/mutexdefaultattributes.c b/c/src/exec/posix/src/mutexdefaultattributes.c new file mode 100644 index 0000000000..46e8ae5158 --- /dev/null +++ b/c/src/exec/posix/src/mutexdefaultattributes.c @@ -0,0 +1,30 @@ +/* + * $Id$ + */ + +#include <assert.h> +#include <errno.h> +#include <pthread.h> + +#include <rtems/system.h> +#include <rtems/score/coremutex.h> +#include <rtems/score/watchdog.h> +#if defined(RTEMS_MULTIPROCESSING) +#include <rtems/score/mpci.h> +#endif +#include <rtems/posix/mutex.h> +#include <rtems/posix/priority.h> +#include <rtems/posix/time.h> + +/*PAGE + * + * The default mutex attributes structure. + */ + +const pthread_mutexattr_t _POSIX_Mutex_Default_attributes = { + TRUE, /* is_initialized */ + PTHREAD_PROCESS_PRIVATE, /* process_shared */ + POSIX_SCHEDULER_MAXIMUM_PRIORITY, /* prio_ceiling */ + PTHREAD_PRIO_NONE, /* protocol */ + FALSE /* recursive */ +}; |