std::shared_lock<Mutex>:: unlock
From cppreference.net
<
cpp
|
thread
|
shared lock
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::shared_lock
| Member functions | ||||
| Shared locking | ||||
|
shared_lock::unlock
|
||||
| Modifiers | ||||
| Observers | ||||
| Non-member functions | ||||
|
void
unlock
(
)
;
|
(C++14 이후) | |
연관된 뮤텍스를 공유 모드에서 해제합니다. 효과적으로 mutex ( ) - > unlock_shared ( ) 를 호출합니다.
std::system_error 는 연결된 뮤텍스가 없거나 뮤텍스가 잠겨 있지 않은 경우 발생합니다.
목차 |
매개변수
(없음)
반환값
(없음)
예외
- mutex ( ) - > unlock_shared ( ) 에 의해 발생하는 모든 예외.
- 연관된 뮤텍스가 없는 경우, std::system_error 가 std::errc::operation_not_permitted 오류 코드와 함께 발생합니다.
예제
|
이 섹션은 불완전합니다
이유: 예제가 없음 |
참고 항목
|
연결된 뮤텍스를 잠금
(public member function) |
|
|
잠금 해제 없이 뮤텍스 연결을 해제
(public member function) |