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

1.3 KiB

[thread.lock.shared.mod]

32 Concurrency support library [thread]

32.6 Mutual exclusion [thread.mutex]

32.6.5 Locks [thread.lock]

32.6.5.5 Class template shared_lock [thread.lock.shared]

32.6.5.5.4 Modifiers [thread.lock.shared.mod]

🔗

void swap(shared_lock& sl) noexcept;

1

#

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

🔗

mutex_type* release() noexcept;

2

#

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

3

#

Returns: The previous value of pm.

🔗

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

4

#

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