WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_delaywork.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_DELAYWORK_H__
10#define __OSAL_DELAYWORK_H__
11
12#ifdef __cplusplus
13#if __cplusplus
14extern "C" {
15#endif
16#endif
17
18typedef struct osal_delayedwork_ {
19 void *work;
20 void (*handler)(struct osal_delayedwork_ *delayedwork);
22typedef void (*osal_delayedwork_handler)(osal_delayedwork *delayedwork);
23
42
58
76
92
93#ifdef __cplusplus
94#if __cplusplus
95}
96#endif
97#endif
98#endif /* __OSAL_DELAYWORK_H__ */
int osal_delayedwork_schedule(osal_delayedwork *work, int timeout)
put work task in global workqueue after delay.
void osal_delayedwork_destroy(osal_delayedwork *work)
This API is used to destroy the delayedwork.
int osal_delayedwork_cancel_sync(osal_delayedwork *work)
cancel a delayed work and wait for it to finish.
int osal_delayedwork_init(osal_delayedwork *work, osal_delayedwork_handler handler)
This API is used to initialization of delayedwork.
struct osal_delayedwork_ osal_delayedwork
void(* osal_delayedwork_handler)(osal_delayedwork *delayedwork)
Definition osal_delaywork.h:22
Definition osal_delaywork.h:18
void(* handler)(struct osal_delayedwork_ *delayedwork)
Definition osal_delaywork.h:20
void * work
Definition osal_delaywork.h:19