OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::gapi::wip::GAsyncContext 類參考

一個用於將非同步請求分組並在一次操作中取消它們的類。 更多...

#include <opencv2/gapi/gasync_context.hpp>

cv::gapi::wip::GAsyncContext 的協作圖

公共成員函式

bool cancel ()
 啟動與關聯請求的取消過程。
 
bool isCanceled () const
 如果已為此上下文請求取消,則返回 true。
 

詳細描述

一個用於將非同步請求分組並在一次操作中取消它們的類。

GAsyncContext 作為引數傳遞給 async()async_apply() 函式

成員函式文件

◆ cancel()

bool cv::gapi::wip::GAsyncContext::cancel ( )

啟動與關聯請求的取消過程。

使用者仍然必須等待每個單獨的請求(透過回撥或根據 std::future 物件),以確保它確實已取消。

返回
如果這是取消上下文的第一個請求,則為 true

◆ isCanceled()

bool cv::gapi::wip::GAsyncContext::isCanceled ( ) const

如果已為此上下文請求取消,則返回 true。

返回
如果已為此上下文請求取消,則為 true

此類文件由以下檔案生成