ffrt rust

Signed-off-by: wanghuachen <513239407@qq.com>
This commit is contained in:
wanghuachen 2023-09-04 20:07:47 +08:00
parent a91bf6e23c
commit e1c76a3858
3 changed files with 0 additions and 8 deletions

View File

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

View File

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

View File

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