Namespaces
Variants

mtx_plain, mtx_recursive, mtx_timed

From cppreference.net
ヘッダーで定義 <threads.h>
enum {

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

} ;
(C11以降)

mtx_init に渡された場合、作成するミューテックスの種類を識別します。

定数 説明
mtx_plain プレーンミューテックス
mtx_recursive 再帰ミューテックス
mtx_timed タイムドミューテックス

参考文献

  • C17規格 (ISO/IEC 9899:2018):
  • 7.26.1/5 mtx_plain, mtx_recursive, mtx_timed (p: 274-275)
  • C11規格 (ISO/IEC 9899:2011):
  • 7.26.1/5 mtx_plain, mtx_recursive, mtx_timed (p: 377)

関連項目

ミューテックスを作成する
(関数)