Namespaces
Variants

thrd_success, thrd_timedout, thrd_busy, thrd_nomem, thrd_error

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

thrd_success = /* unspecified */ ,
thrd_nomem = /* unspecified */ ,
thrd_timedout = /* unspecified */ ,
thrd_busy = /* unspecified */ ,
thrd_error = /* unspecified */

} ;
(C11以降)

スレッド状態とエラーの識別子。

定数 説明
thrd_success 成功した戻り値を示す
thrd_nomem メモリ不足状態による失敗した戻り値を示す
thrd_timedout タイムアウトした戻り値を示す
thrd_busy リソースが一時的に利用不可による失敗した戻り値を示す
thrd_error 失敗した戻り値を示す

参考文献

  • C17規格 (ISO/IEC 9899:2018):
  • 7.26.1/5 thrd_success, thrd_timedout, ... (p: 275)
  • C11標準 (ISO/IEC 9899:2011):
  • 7.26.1/5 thrd_success, thrd_timedout, ... (p: 377)