Home
last modified time | relevance | path

Searched refs:ctx_id (Results 1 - 3 of 3) sorted by relevance

/foundation/resourceschedule/ffrt/src/util/
H A Dcpu_boost_ohos.h23 int cpu_boost_start(int ctx_id);
24 int cpu_boost_end(int ctx_id);
25 int cpu_boost_save(int ctx_id);
26 int cpu_boost_restore(int ctx_id);
97 #define EXECUTE_CPU_BOOST_FUNC(x, ctx_id, ret) auto func = CPUBoostAdapter::Instance()->x##Temp; \
99 ret = (func)(ctx_id); \
104 inline int CpuBoostStart(int ctx_id) in CpuBoostStart() argument
107 EXECUTE_CPU_BOOST_FUNC(cpu_boost_start, ctx_id, ret); in CpuBoostStart()
111 inline int CpuBoostEnd(int ctx_id) in CpuBoostEnd() argument
114 EXECUTE_CPU_BOOST_FUNC(cpu_boost_end, ctx_id, re in CpuBoostEnd()
118 CpuBoostSave(int ctx_id) CpuBoostSave() argument
125 CpuBoostRestore(int ctx_id) CpuBoostRestore() argument
[all...]
H A Dffrt_cpu_boost.cpp32 int ffrt_cpu_boost_start(int ctx_id) in ffrt_cpu_boost_start() argument
34 int ret = ffrt::CpuBoostStart(ctx_id); in ffrt_cpu_boost_start()
38 curTask->cpuBoostCtxId = ctx_id; in ffrt_cpu_boost_start()
45 int ffrt_cpu_boost_end(int ctx_id) in ffrt_cpu_boost_end() argument
47 int ret = ffrt::CpuBoostEnd(ctx_id); in ffrt_cpu_boost_end()
50 if (curTask != nullptr && curTask->cpuBoostCtxId == ctx_id) { in ffrt_cpu_boost_end()
/foundation/resourceschedule/ffrt/interfaces/inner_api/c/
H A Dffrt_cpu_boost.h22 FFRT_C_API int ffrt_cpu_boost_start(int ctx_id);
24 FFRT_C_API int ffrt_cpu_boost_end(int ctx_id);

Completed in 2 milliseconds