Returns result of asynchronous operations. More...
#include <async.hpp>
Public Member Functions | |
~AsyncArray () CV_NOEXCEPT | |
CV_WRAP | AsyncArray () CV_NOEXCEPT |
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 |
AsyncArray (AsyncArray &&o) | |
AsyncArray & | operator= (AsyncArray &&o) CV_NOEXCEPT |
template<typename _Rep , typename _Period > | |
bool | get (OutputArray dst, const std::chrono::duration< _Rep, _Period > &timeout) |
template<typename _Rep , typename _Period > | |
bool | wait_for (const std::chrono::duration< _Rep, _Period > &timeout) |
void * | _getImpl () const CV_NOEXCEPT |
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_WRAP cv::AsyncArray::AsyncArray | ( | ) |
cv::AsyncArray::AsyncArray | ( | const AsyncArray & | o | ) |
|
inline |
|
inline |
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.
|
inline |
|
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 |
|
inline |
AsyncArray& cv::AsyncArray::operator= | ( | const AsyncArray & | o | ) |
CV_WRAP void cv::AsyncArray::release | ( | ) |
CV_WRAP bool cv::AsyncArray::valid | ( | ) | const |
|
inline |
|
inline |
bool cv::AsyncArray::wait_for | ( | int64 | timeoutNs | ) | const |
|
friend |
|
protected |