![]() |
OpenCV
4.6.0
Open Source Computer Vision
|
Returns result of asynchronous operations. More...
#include <opencv2/core/async.hpp>
Public Member Functions | |
AsyncArray () CV_NOEXCEPT | |
AsyncArray (const AsyncArray &o) CV_NOEXCEPT | |
~AsyncArray () CV_NOEXCEPT | |
void * | _getImpl () const CV_NOEXCEPT |
void | get (OutputArray dst) const |
bool | get (OutputArray dst, double timeoutNs) const |
bool | get (OutputArray dst, int64 timeoutNs) const |
AsyncArray & | operator= (const AsyncArray &o) CV_NOEXCEPT |
void | release () CV_NOEXCEPT |
bool | valid () const CV_NOEXCEPT |
bool | wait_for (double timeoutNs) const |
bool | wait_for (int64 timeoutNs) const |
Protected Attributes | |
Impl * | p |
Friends | |
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::AsyncArray::~AsyncArray | ( | ) |
cv::AsyncArray::AsyncArray | ( | ) |
cv::AsyncArray::AsyncArray | ( | const AsyncArray & | o | ) |
|
inline |
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.
|
inline |
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 |
AsyncArray & cv::AsyncArray::operator= | ( | const AsyncArray & | o | ) |
void cv::AsyncArray::release | ( | ) |
bool cv::AsyncArray::valid | ( | ) | const |
|
inline |
bool cv::AsyncArray::wait_for | ( | int64 | timeoutNs | ) | const |
|
friend |
|
protected |