Lines Matching refs:workqueue
20 aos_status_t aos_workqueue_create(aos_workqueue_t *workqueue, const char *name, int32_t prio, void … in aos_workqueue_create() argument
27 if (workqueue == NULL) { in aos_workqueue_create()
48 workqueue->stk = stk; in aos_workqueue_create()
50 workqueue->stk = NULL; in aos_workqueue_create()
58 if (workqueue->stk != NULL) { in aos_workqueue_create()
59 aos_free(workqueue->stk); in aos_workqueue_create()
64 workqueue->hdl = wq; in aos_workqueue_create()
69 void aos_workqueue_del(aos_workqueue_t *workqueue) in aos_workqueue_del() argument
71 if (!workqueue || !(workqueue->hdl)) { in aos_workqueue_del()
75 krhino_workqueue_del(workqueue->hdl); in aos_workqueue_del()
77 aos_free(workqueue->hdl); in aos_workqueue_del()
79 if (NULL != workqueue->stk) { in aos_workqueue_del()
80 aos_free(workqueue->stk); in aos_workqueue_del()
128 aos_status_t aos_work_run(aos_workqueue_t *workqueue, aos_work_t *work) in aos_work_run() argument
132 if ((workqueue == NULL) || (work == NULL)) { in aos_work_run()
136 ret = krhino_work_run(workqueue->hdl, *work); in aos_work_run()