C++11 thread(1)(二)

2015-07-20 17:45:27 · 作者: · 浏览: 9
owing conditions: It also throws if the construction of any of the copies it makes (of the decay types of Fn and Args...) throws. Depending on the library implementation, this constructor may also throw exceptions to report other situations (such as bad_alloc or system_error with other error conditions).
(4) move constructorConstruct a thread object that acquires the thread of execution represented by
x
(if any). This operation does not affect the execution of the moved thread in any way, it simply transfers its handler. The x object no longer represents any thread of execution.
(2) initialization constructor The new thread of execution calls fn passing args as arguments (using decay copies of its lvalue or rvalue references).