harmony 鸿蒙InitSync

2025-06-12 浏览 (1)

InitSync

Overview

Provides APIs for notifying the Init process of events.

Since: 10

Summary

File

NameDescription
init_sync.hDeclares the API for notifying the Init process of events.

Macros

NameDescription
EVENT1   0xfDefines the event EVENT1.
EVENT1_WAITTIME   10000The value 10000 indicates that the waiting time for EVENT1 is 10s.
EVENT2   0xf0Defines the event EVENT2.
EVENT2_WAITTIME   0The value 0 indicates that QS_STAGE2 is not used.
EVENT3   0xf00Defines the event EVENT3.
EVENT3_WAITTIME   0The value 0 indicates that QS_STAGE3 is not used.

Functions

NameDescription
int NotifyInit (unsigned long event)Notifies the Init process of an event. This API can be called by all processes, especially the listened process.

Function Description

NotifyInit()

int NotifyInit (unsigned long event)

Description

Notifies the Init process of an event. This API can be called by all processes, especially the listened process.

Parameters

NameDescription
eventThe events should be consistent between the listener (init process) and the notifier.

Returns

Returns -1 if the operation fails.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Basic Services Kit

harmony 鸿蒙DeviceInfo

harmony 鸿蒙OH_Print

harmony 鸿蒙OsAccount

harmony 鸿蒙Pasteboard

harmony 鸿蒙Print_Margin

harmony 鸿蒙Print_PageSize

harmony 鸿蒙Print_PrintAttributes

harmony 鸿蒙Print_PrintDocCallback

harmony 鸿蒙Print_Range

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/2tTdAn