mtx_plain, mtx_recursive, mtx_timed

来自cppreference.com
< c‎ | thread
定义于头文件 <threads.h>
enum {

    mtx_plain = /* unspecified */,
    mtx_recursive = /* unspecified */,
    mtx_timed = /* unspecified */

};
(C11 起)

传递给mtx_init时,标识要创建的互斥类型。

常量 解释
mtx_plain 平常互斥
mtx_recursive 递归互斥
mtx_timed 时限互斥

[编辑] 参考

  • C11 standard (ISO/IEC 9899:2011):
  • 7.26.1/5 mtx_plain, mtx_recursive, mtx_timed (p: 377)

[编辑] 参阅

创建互斥
(函数) [编辑]