![]() |
OpenCV 4.12.0
开源计算机视觉
|
一个用于将异步请求分组并在一次操作中取消它们的类。 更多...
#include <opencv2/gapi/gasync_context.hpp>
公共成员函数 | |
| bool | cancel () |
| 启动与关联请求的取消过程。 | |
| bool | isCanceled () const |
| 如果已为此上下文请求取消,则返回 true。 | |
一个用于将异步请求分组并在一次操作中取消它们的类。
GAsyncContext 作为参数传递给 async() 和 async_apply() 函数
| bool cv::gapi::wip::GAsyncContext::cancel | ( | ) |
启动与关联请求的取消过程。
用户仍然必须等待每个单独的请求(通过回调或根据 std::future 对象),以确保它确实已取消。
| bool cv::gapi::wip::GAsyncContext::isCanceled | ( | ) | const |
如果已为此上下文请求取消,则返回 true。