Namespaces
Variants

std::unique_lock<Mutex>:: release

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
mutex_type * release ( ) noexcept ;
(C++11부터)

연결된 뮤텍스가 있는 경우 그 연결을 끊고, * this 를 처리합니다.

어떤 잠금도 해제되지 않습니다. 만약 * this 가 호출 전에 관련된 뮤텍스의 소유권을 보유하고 있었다면, 호출자는 이제 뮤텍스를 해제할 책임이 있습니다.

목차

매개변수

(없음)

반환값

연결된 뮤텍스에 대한 포인터 또는 연결된 뮤텍스가 없었을 경우 널 포인터.

예제

참고 항목

연결된 뮤텍스의 잠금을 해제합니다(즉, 소유권을 반환합니다)
(public member function)