timed_mutex::try_lock_until 메서드

소유권을 얻고 있는 mutex 이세요.

template<class Clock, class Duration>
   bool try_lock_for(const chrono::time_point<Clock, Duration>& Abs_time);
bool try_lock_until(const xtime *Abs_time);

매개 변수

  • Abs_time
    다음 메서드는 더 이상 시도의 소유권을 가져올 수 있는 임계값을 지정 하는 시점의 mutex.

반환 값

true메서드는 성공적으로 소유권을 얻는 경우는 mutex. 그렇지 않으면 false.

설명

호출 하는 스레드를 이미 소유 하는 경우는 mutex, 동작이 정의 되지 않습니다.

요구 사항

헤더: 뮤텍스

네임 스페이스: std

참고 항목

참조

<mutex>

timed_mutex 클래스

time_point 클래스

기타 리소스

헤더 파일