thread 类
C++11的支持的thread线程库对原生的pthread库进行了封装,原本pthread_create函数只能传递一个参数,而新的thread类更为灵活。
部分构造函数如下,其中复制构造函数都已处于delete状态,不再使用:
thread() noexcept = default;
thread(thread&& __t) noexcept
template<typename _Callable, typename... _Args>
explicit thread(_Callable