Files
2025-10-25 03:02:53 +03:00

1.3 KiB

[thread.lock.unique.mod]

32 Concurrency support library [thread]

32.6 Mutual exclusion [thread.mutex]

32.6.5 Locks [thread.lock]

32.6.5.4 Class template unique_lock [thread.lock.unique]

32.6.5.4.4 Modifiers [thread.lock.unique.mod]

🔗

void swap(unique_lock& u) noexcept;

1

#

Effects: Swaps the data members of *this and u.

🔗

mutex_type* release() noexcept;

2

#

Postconditions: pm == 0 and owns == false.

3

#

Returns: The previous value of pm.

🔗

template<class Mutex> void swap(unique_lock<Mutex>& x, unique_lock<Mutex>& y) noexcept;

4

#

Effects: As if by x.swap(y).