HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::OrtCondVar Class Reference

#include <ort_mutex.h>

Public Types

using native_handle_type = nsync::nsync_cv *
 

Public Member Functions

constexpr OrtCondVar () noexcept=default
 
 ~OrtCondVar ()=default
 
 OrtCondVar (const OrtCondVar &)=delete
 
OrtCondVaroperator= (const OrtCondVar &)=delete
 
void notify_one () noexcept
 
void notify_all () noexcept
 
void wait (std::unique_lock< OrtMutex > &lk)
 
template<class _Predicate >
void wait (std::unique_lock< OrtMutex > &__lk, _Predicate __pred)
 
template<class Rep , class Period >
std::cv_status wait_for (std::unique_lock< OrtMutex > &cond_mutex, const std::chrono::duration< Rep, Period > &rel_time)
 
native_handle_type native_handle ()
 

Detailed Description

Definition at line 127 of file ort_mutex.h.

Member Typedef Documentation

Definition at line 154 of file ort_mutex.h.

Constructor & Destructor Documentation

constexpr onnxruntime::OrtCondVar::OrtCondVar ( )
defaultnoexcept
onnxruntime::OrtCondVar::~OrtCondVar ( )
default
onnxruntime::OrtCondVar::OrtCondVar ( const OrtCondVar )
delete

Member Function Documentation

native_handle_type onnxruntime::OrtCondVar::native_handle ( )
inline

Definition at line 155 of file ort_mutex.h.

void onnxruntime::OrtCondVar::notify_all ( )
inlinenoexcept

Definition at line 138 of file ort_mutex.h.

void onnxruntime::OrtCondVar::notify_one ( )
inlinenoexcept

Definition at line 137 of file ort_mutex.h.

OrtCondVar& onnxruntime::OrtCondVar::operator= ( const OrtCondVar )
delete
void onnxruntime::OrtCondVar::wait ( std::unique_lock< OrtMutex > &  lk)
template<class _Predicate >
void onnxruntime::OrtCondVar::wait ( std::unique_lock< OrtMutex > &  __lk,
_Predicate  __pred 
)

Definition at line 163 of file ort_mutex.h.

template<class Rep , class Period >
std::cv_status onnxruntime::OrtCondVar::wait_for ( std::unique_lock< OrtMutex > &  cond_mutex,
const std::chrono::duration< Rep, Period > &  rel_time 
)

returns cv_status::timeout if the wait terminates when Rel_time has elapsed. Otherwise, the method returns cv_status::no_timeout.

Parameters
cond_mutexA unique_lock<OrtMutex> object.
rel_timeA chrono::duration object that specifies the amount of time before the thread wakes up.
Returns
returns cv_status::timeout if the wait terminates when Rel_time has elapsed. Otherwise, the method returns cv_status::no_timeout

Definition at line 168 of file ort_mutex.h.


The documentation for this class was generated from the following file: