OpenCV453
|
Returns result of asynchronous operations [詳解]
#include <async.hpp>
公開メンバ関数 | |
AsyncArray (const AsyncArray &o) CV_NOEXCEPT | |
AsyncArray & | operator= (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.
CV_WRAP void cv::AsyncArray::get | ( | OutputArray | dst | ) | const |
Fetch the result.
[out] | dst | destination array |
Waits for result until container has valid result. Throws exception if exception was stored as a result.
Throws exception on invalid container state.
bool cv::AsyncArray::get | ( | OutputArray | dst, |
int64 | timeoutNs | ||
) | const |
Retrieving the result with timeout
[out] | dst | destination array |
[in] | timeoutNs | timeout in nanoseconds, -1 for infinite wait |