WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_rwlock.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2022. All rights reserved.
3 * Description: OS Abstract Layer.
4 */
5
9#ifndef __OSAL_RWLOCK_H__
10#define __OSAL_RWLOCK_H__
11
12#ifdef __cplusplus
13#if __cplusplus
14extern "C" {
15#endif
16#endif
17
18typedef struct {
19 void *rwlock;
21
36
49
62
75
88
101
102#ifdef __cplusplus
103#if __cplusplus
104}
105#endif
106#endif
107#endif /* __OSAL_RWLOCK_H__ */
void osal_rwlock_write_unlock(osal_rwlock *rw_lock)
Unlock after writing.
void osal_rwlock_read_lock(osal_rwlock *rw_lock)
Lock it when you go in and read it.
int osal_rwlock_init(osal_rwlock *rw_lock)
We need to initialize when we need to.
void osal_rwlock_write_lock(osal_rwlock *rw_lock)
Lock when you want to write.
void osal_rwlock_read_unlock(osal_rwlock *rw_lock)
Unlock when you read it out.
void osal_rwlock_destory(osal_rwlock *rw_lock)
We release rw_locks when we don't need it.
Definition osal_rwlock.h:18
void * rwlock
Definition osal_rwlock.h:19