WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_rwlock

函数

int osal_rwlock_init (osal_rwlock *rw_lock)
 We need to initialize when we need to.
 
void osal_rwlock_read_lock (osal_rwlock *rw_lock)
 Lock it when you go in and read it.
 
void osal_rwlock_read_unlock (osal_rwlock *rw_lock)
 Unlock when you read it out.
 
void osal_rwlock_write_lock (osal_rwlock *rw_lock)
 Lock when you want to write.
 
void osal_rwlock_write_unlock (osal_rwlock *rw_lock)
 Unlock after writing.
 
void osal_rwlock_destory (osal_rwlock *rw_lock)
 We release rw_locks when we don't need it.
 

详细描述

函数说明

◆ osal_rwlock_destory()

void osal_rwlock_destory ( osal_rwlock rw_lock)

We release rw_locks when we don't need it.

Description:
Release Lock.
Support System:
linux.

◆ osal_rwlock_init()

int osal_rwlock_init ( osal_rwlock rw_lock)

We need to initialize when we need to.

Description:
Read/write lock initialization.
返回
OSAL_FAILURE/OSAL_SUCCESS
Support System:
linux.

◆ osal_rwlock_read_lock()

void osal_rwlock_read_lock ( osal_rwlock rw_lock)

Lock it when you go in and read it.

Description:
Read lock.
Support System:
linux.

◆ osal_rwlock_read_unlock()

void osal_rwlock_read_unlock ( osal_rwlock rw_lock)

Unlock when you read it out.

Description:
Read Unlock.
Support System:
linux.

◆ osal_rwlock_write_lock()

void osal_rwlock_write_lock ( osal_rwlock rw_lock)

Lock when you want to write.

Description:
Write lock.
Support System:
linux.

◆ osal_rwlock_write_unlock()

void osal_rwlock_write_unlock ( osal_rwlock rw_lock)

Unlock after writing.

Description:
Write Unlock.
Support System:
linux.