1 Star 0 Fork 5.4K

How / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
OHOS-Task.md 8.69 KB
一键复制 编辑 原始数据 按行查看 历史
[yang] 提交于 2020-12-12 14:19 . Description: update docs 20201212

OHOS::Task

Overview

Related Modules:

Graphic

Description:

Represents the Task class of the graphics module. This class provides functions for setting the running period and time of a task.

Since:

1.0

Version:

1.0

Summary

Public Member Functions

Function

Description

Task ()

A constructor used to create a Task instance.

Task (uint32_t period)

A constructor used to create a Task instance with the specified running period.

~Task ()

virtual

A destructor used to delete the Task instance.

SetPeriod (uint32_t period)

void

Sets the running period for this task.

SetLastRun (uint32_t lastRun)

void

Sets the end time for this task.

GetPeriod () const

uint32_t

Obtains the running period of this task.

GetLastRun () const

uint32_t

Obtains the end time of this task.

TaskExecute ()

void

Executes this task.

Callback ()=0

virtual void

Called when this task is executed.

Init ()

virtual void

Initializes this task.

operator new (size_t size)

void *

Overrides the new function.

operator delete (void *p)

void

Overrides the delete function.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mike-mei/docs.git
git@gitee.com:mike-mei/docs.git
mike-mei
docs
docs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891