OpenCV
5.0.0alpha
Open Source Computer Vision
|
A class to group async requests to cancel them in a single shot. More...
#include <opencv2/gapi/gasync_context.hpp>
Public Member Functions | |
bool | cancel () |
Start cancellation process for an associated request. | |
bool | isCanceled () const |
Returns true if cancellation was requested for this context. | |
A class to group async requests to cancel them in a single shot.
GAsyncContext is passed as an argument to async() and async_apply() functions
bool cv::gapi::wip::GAsyncContext::cancel | ( | ) |
Start cancellation process for an associated request.
User still has to wait for each individual request (either via callback or according std::future object) to make sure it actually canceled.
bool cv::gapi::wip::GAsyncContext::isCanceled | ( | ) | const |
Returns true if cancellation was requested for this context.