!1066 解决架构平台接口一致性问题

Merge pull request !1066 from zhuguoyang/master
This commit is contained in:
openharmony_ci 2024-07-24 09:31:01 +00:00 committed by Gitee
commit 6dc46eb4fa
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;