mirror of
https://gitee.com/openharmony/resourceschedule_ffrt
synced 2024-12-03 11:01:02 +00:00
ffrt rust
Signed-off-by: wanghuachen <513239407@qq.com>
This commit is contained in:
parent
a91bf6e23c
commit
e1c76a3858
@ -31,7 +31,6 @@ typedef struct ffrt_executor_task {
|
||||
|
||||
typedef void (*ffrt_executor_task_func)(ffrt_executor_task_t* data);
|
||||
|
||||
// ffrt_executor_task
|
||||
FFRT_C_API void ffrt_executor_task_register_func(ffrt_executor_task_func func, ffrt_executor_task_type_t type);
|
||||
FFRT_C_API void ffrt_executor_task_submit(ffrt_executor_task_t *task, const ffrt_task_attr_t *attr);
|
||||
FFRT_C_API int ffrt_executor_task_cancel(ffrt_executor_task_t *taask, const ffrt_qos_t qos);
|
||||
|
@ -55,7 +55,6 @@ void CPUWorker::Run(ffrt_executor_task_t* task, ffrt_qos_t qos)
|
||||
} else {
|
||||
func = FuncManager::Instance()->getFunc(ffrt_uv_task);
|
||||
}
|
||||
|
||||
if (func == nullptr) {
|
||||
FFRT_LOGE("func is nullptr");
|
||||
return;
|
||||
|
@ -50,12 +50,6 @@ private:
|
||||
static void Dispatch(CPUWorker* worker);
|
||||
static void Run(TaskCtx* task);
|
||||
static void Run(ffrt_executor_task_t* data, ffrt_qos_t qos);
|
||||
#ifdef FFRT_IO_TASK_SCHEDULER
|
||||
static void RunTask(ffrt_executor_task_t* task, CPUWorker* worker, TaskCtx* &lastTask);
|
||||
static void RunTaskLifo(ffrt_executor_task_t* task, CPUWorker* worker, TaskCtx* &lastTask);
|
||||
static bool LocalEmpty(CPUWorker* worker);
|
||||
static void* GetTask(CPUWorker* worker);
|
||||
#endif
|
||||
};
|
||||
} // namespace ffrt
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user