“cpp/thread/condition variable/native handle”的版本间的差异
来自cppreference.com
< cpp | thread | condition variable
小 (1个修订: Translate from the English version) |
小 (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) |
||
第1行: | 第1行: | ||
{{page template|cpp/thread/condition_variable/native_handle|condition_variable}} | {{page template|cpp/thread/condition_variable/native_handle|condition_variable}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ |
2012年11月2日 (五) 21:28的版本
native_handle_type native_handle(); |
(C++11 起) | |
访问 *this 的本机句柄。
此函数结果的含义和类型是实现定义的。POSIX 系统上,这可以是 pthread_cond_t* 类型的值。Windows 系统上,这可以是 PCONDITION_VARIABLE。
参数
(无)
返回值
此条件变量的本机句柄。
参阅
返回底层的实现定义的线程句柄 ( std::thread 的公开成员函数)
| |
返回底层的实现定义的线程句柄 ( std::jthread 的公开成员函数)
|