Namespaces
Variants

std::shared_lock<Mutex>:: unlock

From cppreference.net
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
Generic lock management
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
Safe reclamation
Hazard pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11) (deprecated in C++20)
(C++11) (deprecated in C++20)
Memory ordering
(C++11) (deprecated in C++26)
Free functions for atomic operations
Free functions for atomic flags
void unlock ( ) ;
(C++14 이후)

연관된 뮤텍스를 공유 모드에서 해제합니다. 효과적으로 mutex ( ) - > unlock_shared ( ) 를 호출합니다.

std::system_error 는 연결된 뮤텍스가 없거나 뮤텍스가 잠겨 있지 않은 경우 발생합니다.

목차

매개변수

(없음)

반환값

(없음)

예외

  • mutex ( ) - > unlock_shared ( ) 에 의해 발생하는 모든 예외.

예제

참고 항목

연결된 뮤텍스를 잠금
(public member function)
잠금 해제 없이 뮤텍스 연결을 해제
(public member function)