Loading...
Searching...
No Matches
cv::gapi::wip::GAsyncContext Class Reference
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. | |
Detailed Description
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
Member Function Documentation
◆ cancel()
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.
- Returns
- true if it was a first request to cancel the context
◆ isCanceled()
bool cv::gapi::wip::GAsyncContext::isCanceled | ( | ) | const |
Returns true if cancellation was requested for this context.
- Returns
- true if cancellation was requested for this context
The documentation for this class was generated from the following file:
- opencv2/gapi/gasync_context.hpp