Namespaces
Variants

std::unique_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++11 이후)

연결된 뮤텍스의 잠금을 해제합니다(즉, 소유권을 해제합니다).

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

목차

매개변수

(없음)

반환값

(없음)

예외

연관된 뮤텍스가 없거나 뮤텍스가 잠겨 있지 않은 경우, std::system_error std::errc::operation_not_permitted 오류 코드와 함께 발생합니다.

예제

참고 항목

연결된 뮤텍스를 잠금(즉, 소유권을 획득함)
(public member function)
연결된 뮤텍스를 잠금 해제하지 않고(즉, 소유권을 해제하지 않고) 분리함
(public member function)