1 Star 0 Fork 4.9K

famoustang / docs

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

osal_sem.h

Overview

Related Modules:

OSAL

Description:

Declares semaphore structures and interfaces.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

OsalSem

Describes a semaphore.

Macros

Macro Name and Value

Description

OSAL_DECLARE_SEMAPHORE(sem)   struct OsalSem sem

Defines a semaphore.

Functions

Function Name

Description

OsalSemInit (struct OsalSem *sem, uint32_t value)

int32_t 

Initializes a semaphore.

OsalSemWait (struct OsalSem *sem, uint32_t ms)

int32_t 

Waits for a semaphore.

OsalSemPost (struct OsalSem *sem)

int32_t 

Releases a semaphore.

OsalSemDestroy (struct OsalSem *sem)

int32_t 

Destroys a semaphore.

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

搜索帮助