?
This document uses PHP Chinese website manual Release
在頭文件<threads.h>中定義 | ||
---|---|---|
enum {thrd_success = / * unspecified * /,thrd_nomem = / * unspecified * /,thrd_timedout = / * unspecified * /,thrd_busy = / * unspecified * /,thrd_error = / * unspecified * /}; | (自C11以來) |
標(biāo)識線程錯誤狀態(tài)。
常量 | 說明 |
---|---|
thrd_success | 表示成功返回值 |
thrd_timedout | 表示超時返回值 |
thrd_busy | 由于資源暫時不可用,表示返回值不成功 |
thrd_nomem | 由于內(nèi)存不足而表示不成功的返回值 |
thrd_error | 表示不成功的返回值 |
C11標(biāo)準(zhǔn)(ISO / IEC 9899:2011):
7.26.1 / 5 thrd_success,thrd_timedout,...(p:377)