swap Function (<thread>)

 

Swaps the states of two thread objects.

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

Left

The left thread object.

Right

The right thread object.

The function calls Left.swap(Right).

Requirements

Header: thread

Namespace: std

Show: