Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::cv_status

      From cppreference.com
      <cpp‎ |thread
       
       
      Concurrency support library
      Threads
      (C++11)
      (C++20)
      this_thread namespace
      (C++11)
      (C++11)
      (C++11)
      Cooperative cancellation
      Mutual exclusion
      Generic lock management
      (C++11)
      (C++11)
      (C++11)
      (C++11)
      Condition variables
      cv_status
      (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
       
      Defined in header<condition_variable>
      enumclass cv_status{

          no_timeout,
          timeout  

      };
      (since C++11)

      The scoped enumerationstd::cv_status describes whether a timed wait returned because of timeout or not.

      std::cv_status is used by thewait_for andwait_until member functions ofstd::condition_variable andstd::condition_variable_any.

      [edit]Member constants

      Enumerator Meaning
      no_timeout the condition variable was awakened withnotify_all,notify_one, or spuriously
      timeout the condition variable was awakened by timeout expiration

      [edit]See also

      blocks the current thread until the condition variable is awakened or after the specified timeout duration
      (public member function ofstd::condition_variable)[edit]
      blocks the current thread until the condition variable is awakened or after the specified timeout duration
      (public member function ofstd::condition_variable_any)[edit]
      blocks the current thread until the condition variable is awakened or until specified time point has been reached
      (public member function ofstd::condition_variable)[edit]
      blocks the current thread until the condition variable is awakened or until specified time point has been reached
      (public member function ofstd::condition_variable_any)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/thread/cv_status&oldid=182038"

      [8]ページ先頭

      ©2009-2025 Movatter.jp