©
                    本文档使用
                    php中文网手册 发布
                
| 在头文件<threads.h>中定义 | ||
|---|---|---|
| enum {thrd_success = / * unspecified * /,thrd_nomem = / * unspecified * /,thrd_timedout = / * unspecified * /,thrd_busy = / * unspecified * /,thrd_error = / * unspecified * /}; | (自C11以来) | 
标识线程错误状态。
| 常量 | 说明 | 
|---|---|
| thrd_success | 表示成功返回值 | 
| thrd_timedout | 表示超时返回值 | 
| thrd_busy | 由于资源暂时不可用,表示返回值不成功 | 
| thrd_nomem | 由于内存不足而表示不成功的返回值 | 
| thrd_error | 表示不成功的返回值 | 
C11标准(ISO / IEC 9899:2011):
7.26.1 / 5 thrd_success,thrd_timedout,...(p:377)