swap 函数 (<thread>)

交换两个 thread 对象的状态。

void swap(
   thread& Left,
   thread& Right
) _NOEXCEPT;

参数

  • Left
    thread 对象。

  • Right
    正确的 thread 对象。

备注

函数调用 Left.swap(Right)。

要求

标头: 线程

命名空间: std

请参见

参考

thread 类

<thread>

thread::swap 方法