harmony 鸿蒙loop.h
loop.h
Overview
The loop.h file declares the loop interfaces in C.
File to include: <ffrt/loop.h>
Library: libffrt.z.so
System capability: SystemCapability.Resourceschedule.Ffrt.Core
Since: 12
Related module: FFRT
Summary
Types
Name | Description |
---|---|
typedef void * ffrt_loop_t | Loop handle. |
Functions
Name | Description |
---|---|
FFRT_C_API ffrt_loop_t ffrt_loop_create (ffrt_queue_t queue) | Creates a loop. |
FFRT_C_API int ffrt_loop_destroy (ffrt_loop_t loop) | Destroys a loop. |
FFRT_C_API int ffrt_loop_run (ffrt_loop_t loop) | Runs a loop. |
FFRT_C_API void ffrt_loop_stop (ffrt_loop_t loop) | Stops a loop. |
FFRT_C_API int ffrt_loop_epoll_ctl (ffrt_loop_t loop, int op, int fd, uint32_t events, void *data, ffrt_poller_cb cb) | Manages listening events on a loop. |
FFRT_C_API ffrt_timer_t ffrt_loop_timer_start (ffrt_loop_t loop, uint64_t timeout, void *data, ffrt_timer_cb cb, bool repeat) | Starts the timer on a loop. |
FFRT_C_API int ffrt_loop_timer_stop (ffrt_loop_t loop, ffrt_timer_t handle) | Stops the timer on a loop. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Function Flow Runtime Kit
harmony 鸿蒙condition_variable.h
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦