mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-23 06:39:54 +00:00
modify ffrt annotation
Signed-off-by: zhuguoyang <zhuguoyang@h-partners.com>
This commit is contained in:
parent
f7eb83440a
commit
e9972515c5
@ -49,10 +49,11 @@
|
||||
/**
|
||||
* @brief Enumerates the task priority types.
|
||||
*
|
||||
* @since 12
|
||||
*/
|
||||
typedef enum {
|
||||
/** should be distributed at once if possible, handle time equals to send time, prior to high level */
|
||||
ffrt_queue_priority_immediate,
|
||||
ffrt_queue_priority_immediate = 0,
|
||||
/** high priority, sorted by handle time, prior to low level. */
|
||||
ffrt_queue_priority_high,
|
||||
/** low priority, sorted by handle time, prior to idle level. */
|
||||
@ -190,10 +191,25 @@ typedef struct {
|
||||
uint32_t storage[(ffrt_cond_storage_size + sizeof(uint32_t) - 1) / sizeof(uint32_t)];
|
||||
} ffrt_cond_t;
|
||||
|
||||
/**
|
||||
* @brief poller callback.
|
||||
*
|
||||
* @since 12
|
||||
*/
|
||||
typedef void (*ffrt_poller_cb)(void* data, uint32_t event);
|
||||
|
||||
/**
|
||||
* @brief timer callback.
|
||||
*
|
||||
* @since 12
|
||||
*/
|
||||
typedef void (*ffrt_timer_cb)(void* data);
|
||||
|
||||
/**
|
||||
* @brief timer handler.
|
||||
*
|
||||
* @since 12
|
||||
*/
|
||||
typedef int ffrt_timer_t;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user