“cpp/thread/condition variable/native handle”的版本间的差异
来自cppreference.com
< cpp | thread | condition variable
TranslationBot(讨论 | 贡献) (Translated from the English version using Google Translate) |
|||
(未显示2个用户的3个中间版本) | |||
第1行: | 第1行: | ||
− | {{page | + | {{page|cpp/thread/condition_variable/native_handle|condition_variable |
+ | |||
+ | }} |
2017年8月27日 (日) 10:44的最后版本
native_handle_type native_handle(); |
(C++11 起) | |
访问 *this 的本机句柄。
此函数结果的含义和类型是实现定义的。POSIX 系统上,这可以是 pthread_cond_t* 类型的值。Windows 系统上,这可以是 PCONDITION_VARIABLE。
[编辑] 参数
(无)
[编辑] 返回值
此条件变量的本机句柄。
[编辑] 参阅
返回底层的实现定义的线程句柄 ( std::thread 的公开成员函数)
| |
返回底层的实现定义的线程句柄 ( std::jthread 的公开成员函数)
|