C参考手册
线程支持 | Thread support
mtx_timed
在头文件<threads.h>中定义 |
|
|
---|---|---|
enum {mtx_plain = / *未指定* /,mtx_recursive = / *未指定* /,mtx_timed = / *未指定* /}; |
|
(自C11以来) |
传递给mtx_init
时,标识要创建的互斥体的类型。
常量 |
说明 |
---|---|
mtx_plain |
简单的互斥体 |
mtx_recursive |
递归互斥 |
mtx_timed |
定时互斥 |
参考
- C11标准(ISO / IEC 9899:2011):
- 7.26.1 / 5 mtx_plain,mtx_recursive,mtx_timed(p:377)
扩展内容
mtx_init(C11) |
创建一个互斥体(函数) |
---|