std::condition_variable:: native_handle
From cppreference.net
<
cpp
|
thread
|
condition variable
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::condition_variable
| Member functions | ||||
| Notification | ||||
| Waiting | ||||
| Native handle | ||||
|
condition_variable::native handle
|
|
native_handle_type native_handle
(
)
;
|
(自 C++11 起) | |
访问 * this 的原生句柄。
此函数返回结果的含义和类型由实现定义。在 POSIX 系统中,该值可能为 pthread_cond_t * 类型。在 Windows 系统中,该值可能为 PCONDITION_VARIABLE 类型。
参数
(无)
返回值
此条件变量的原生句柄。
另请参阅
|
返回底层实现定义的线程句柄
(
std::thread
的公开成员函数)
|
|
|
返回底层实现定义的线程句柄
(
std::jthread
的公开成员函数)
|