chsvlib
chsv helper source code

◆ swap()

void Chusov::ExecutionControl::swap ( shared_lock< SharedMutex > &  left,
shared_lock< SharedMutex > &  right 
)
noexcept

Swaps states of two shared_lock objects.

Template Parameters
SharedMutexA type which satisfies the SharedMutex requirements.
Parameters
leftThe shared_lock object to swap with right.
rightThe shared_lock object to swap with left.