"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["2919"],{54939:function(e,s,n){n.r(s);var i=n(85893),r=n(50065);function t(e){let s=Object.assign({h1:"h1",a:"a",pre:"pre",code:"code",span:"span",p:"p",ul:"ul",li:"li",div:"div",ol:"ol"},(0,r.ah)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.h1,{id:"hbucpwaittaskdone",children:[(0,i.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#hbucpwaittaskdone",children:"#"}),"hbUCPWaitTaskDone"]}),"\n",(0,i.jsx)(s.pre,{className:"code",children:(0,i.jsx)(s.pre,{className:"shiki css-variables has-line-number",style:{backgroundColor:"var(--shiki-color-background)"},tabIndex:"0",children:(0,i.jsxs)(s.code,{className:"language-cpp",meta:"",children:[(0,i.jsxs)(s.span,{className:"line line-number",children:[(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"int32_t"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"hbUCPWaitTaskDone"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"hbUCPTaskHandle_t"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" taskHandle"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"int32_t"}),(0,i.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" timeout);"})]}),"\n"]})})}),"\n",(0,i.jsx)(s.p,{children:"Wait for task complete or timeout."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:["\n",(0,i.jsx)(s.p,{children:"Parameter"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:["[in] ",(0,i.jsx)(s.code,{children:"taskHandle"})," Task handle pointer."]}),"\n",(0,i.jsxs)(s.li,{children:["[in] ",(0,i.jsx)(s.code,{children:"timeout"})," Timeout configuration (in milliseconds)."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(s.li,{children:["\n",(0,i.jsx)(s.p,{children:"Return Value"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:["Return ",(0,i.jsx)(s.code,{children:"0"})," means the API was successfully executed, otherwise the execution failed."]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(s.div,{className:"rspress-directive info",children:[(0,i.jsx)(s.div,{className:"rspress-directive-title",children:"Note"}),(0,i.jsx)(s.div,{className:"rspress-directive-content",children:(0,i.jsxs)(s.ol,{children:["\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"timeout > 0"})," represents the wait time."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"timeout <= 0"})," represents keep waiting until the task is completed."]}),"\n"]})})]})]})}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.ah)(),e.components);return s?(0,i.jsx)(s,Object.assign({},e,{children:(0,i.jsx)(t,e)})):t(e)}s.default=l,l.__RSPRESS_PAGE_META={},l.__RSPRESS_PAGE_META["latest%2Fen%2Fguide%2Fucp%2Fucp_api_reference%2Fucp_api_function_interface%2Fhbucpwaittaskdone.mdx"]={toc:[],title:"hbUCPWaitTaskDone",frontmatter:{}}}}]);