mutexdefaultattributes.c
来自「RTEMS (Real-Time Executive for Multiproc」· C语言 代码 · 共 35 行
C
35 行
/* * $Id: mutexdefaultattributes.c,v 1.2 2001/01/24 14:17:28 joel Exp $ */#if HAVE_CONFIG_H#include "config.h"#endif#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 */};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?