C++11 Thread support library 概览 线程库中英文对照(二)
y may proceed, until a timeout expires, or until a spurious wakeup occurs. A condition variable is always associated with a mutex.
//一个条件变量是一个同步原语,实现了一个列表的线程等待另一个线程通知一个或所有的等待线程,他们可能继续进行,直到一个超时过期,或直到一个虚假唤醒发生。一个条件变量总是关联到一个互斥锁。
condition_variable
(C++11)
provides a condition variable assocaited with std::unique_lock
(class)//提供一个和std::unique_lock关联的条件变量
condition_variable_any
(C++11)
provides a condition varibale associated with any lock type
(class)//提供一个和任意锁类型关联的条件变量
notify_all_at_thread_exit
(C++11)
schedules a call to notify_all to be invoked when this thread exits
(function)//线程退出时调用一个调度(call)通告所有
cv_status
(C++11)
lists the possible results of timed waits on condition variables
(class)//列出了定时等待条件变量的可能的结果
Futures//未来
This section is incomplete//此章节是未完成的
Defined in header //在头文件定义
promise
(C++11)
stores a value for asynchronous retrieva l
(class template)//存储异步返回值
packaged_task
(C++11)
packages a function to store its return value for asynchronous retrieva l
(class template)//为异步返回值打包一个函数来存储它的返回值
future
(C++11)
waits for a value that is set asynchronously
(class template)//等待一个异步设置的值
shared_future
(C++11)
waits for a value that is set asynchronously. The internal state is shared among several objects
(class template)//等待一个异步设置的值,内部状态是几个对象之间共享
async
(C++11)
provides a facility to launch a function in a new thread and acquire its return value asynchronously
(function template)//提供一种工具来启动一个函数在一个新线程和异步获取其返回值