OpenCV453
公開メンバ関数 | 限定公開変数類 | フレンド | 全メンバ一覧
cv::AsyncArray クラス

Returns result of asynchronous operations [詳解]

#include <async.hpp>

公開メンバ関数

 AsyncArray (const AsyncArray &o) CV_NOEXCEPT
 
AsyncArrayoperator= (const AsyncArray &o) CV_NOEXCEPT
 
CV_WRAP void release () CV_NOEXCEPT
 
CV_WRAP void get (OutputArray dst) const
 
bool get (OutputArray dst, int64 timeoutNs) const
 
CV_WRAP bool get (OutputArray dst, double timeoutNs) const
 
bool wait_for (int64 timeoutNs) const
 
CV_WRAP bool wait_for (double timeoutNs) const
 
CV_WRAP bool valid () const CV_NOEXCEPT
 
void * _getImpl () const CV_NOEXCEPT
 

限定公開変数類

Impl * p
 

フレンド

struct Impl
 

詳解

Returns result of asynchronous operations

Object has attached asynchronous state. Assignment operator doesn't clone asynchronous state (it is shared between all instances).

Result can be fetched via get() method only once.

関数詳解

◆ get() [1/2]

CV_WRAP void cv::AsyncArray::get ( OutputArray  dst) const

Fetch the result.

引数
[out]dstdestination array

Waits for result until container has valid result. Throws exception if exception was stored as a result.

Throws exception on invalid container state.

覚え書き
Result or stored exception can be fetched only once.

◆ get() [2/2]

bool cv::AsyncArray::get ( OutputArray  dst,
int64  timeoutNs 
) const

Retrieving the result with timeout

引数
[out]dstdestination array
[in]timeoutNstimeout in nanoseconds, -1 for infinite wait
戻り値
true if result is ready, false if the timeout has expired
覚え書き
Result or stored exception can be fetched only once.

このクラス詳解は次のファイルから抽出されました: