0 out of 1 rated this helpful - Rate this topic

swap Function (<thread>)

Visual Studio 2012

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).

Header: thread

Namespace: std

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.