1 Star 0 Fork 4.9K

Lin_bruin / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
service-h.md 8.95 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

service.h

Overview

Related Modules:

Samgr

Description:

Provides basic types and constants of services.

This file is mainly used for service development. This file provides basic capabilities such as lifecycle functions of services, inherited macros, and task configuration.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

TaskConfig

Defines task configurations for a service.

Service

Indicates the basic type of a service.

Macros

Macro Name and Value

Description

INHERIT_SERVICE

Indicates the macro used to inherit the members from the service class.

Typedefs

Typedef Name

Description

TaskType

typedef enum TaskType 

Enumerates task types.

SpecifyTag

typedef enum SpecifyTag 

Specifies the tag for the task shared by multiple services.

TaskPriority

typedef enum TaskPriority 

Enumerates task priority.

Enumerations

Enumeration Name

Description

TaskType { SHARED_TASK = 0, SINGLE_TASK = 1, SPECIFIED_TASK = 2, NO_TASK = 0xFF }

Enumerates task types.

SpecifyTag { LEVEL_HIGH = 0, LEVEL_MIDDLE = 1, LEVEL_LOW = 2, LEVEL_CUSTOM_BEGIN }

Specifies the tag for the task shared by multiple services.

TaskPriority {   PRI_LOW = 9, PRI_BELOW_NORMAL = 16, PRI_NORMAL = 24, PRI_ABOVE_NORMAL = 32,   PRI_BUTT = 39 }

Enumerates task priority.

1
https://gitee.com/dreaminghell/docs.git
git@gitee.com:dreaminghell/docs.git
dreaminghell
docs
docs
master

搜索帮助