thread_join
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <threads.h> 中定义
|
||
| int thrd_join( thrd_t thr, int *res ); |
(C11 起) | |
阻止当前线程,直到确定的
thr的线程执行结束后.原文:
Blocks the current thread until the thread identified by
thr finishes execution.结果代码的线程放置到指向的位置
res.原文:
The result code of the thread is put to the location pointed to by
res.[编辑] 参数
| thr | - | 加入的线程标识符
|
| res | - | 把结果代码的位置
|
[编辑] 返回值
[编辑] 另请参阅
| (C11) |
分离线程 (函数) |
| (C11) |
终止调用线程 (函数) |