mirror of
https://gitee.com/openharmony/resourceschedule_ffrt
synced 2024-11-26 23:00:25 +00:00
fix code
Signed-off-by: wangyulie <wanglieyu@126.com>
This commit is contained in:
parent
b568bbf244
commit
20e24f8b6e
@ -18,7 +18,7 @@ ohos_executable("ffrt_submit") {
|
||||
|
||||
include_dirs = [ "../interfaces/kits" ]
|
||||
|
||||
deps = [ "//foundation/resourceschedule/ffrt:libffrt" ]
|
||||
deps = [ "../..:libffrt" ]
|
||||
|
||||
install_enable = false
|
||||
install_images = [ "system" ]
|
||||
|
@ -43,7 +43,7 @@ public:
|
||||
return &instance;
|
||||
}
|
||||
|
||||
#define REG_FUNC(func) using func##Type = decltype(func)*; func##Type func = nullptr
|
||||
#define REG_FUNC(func) using func##Type = decltype(func)*; func##Type func##Temp = nullptr
|
||||
REG_FUNC(cpu_boost_start);
|
||||
REG_FUNC(cpu_boost_end);
|
||||
REG_FUNC(cpu_boost_save);
|
||||
|
@ -29,7 +29,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
API_ATTRIBUTE((visibility("default")))
|
||||
void ffrt_cpu_boost_start(bool mode)
|
||||
int ffrt_cpu_boost_start(int ctx_id)
|
||||
{
|
||||
int ret = ffrt::CpuBoostStart(ctx_id);
|
||||
if (ret == 0) {
|
||||
@ -42,7 +42,7 @@ void ffrt_cpu_boost_start(bool mode)
|
||||
}
|
||||
|
||||
API_ATTRIBUTE((visibility("default")))
|
||||
void ffrt_cpu_boost_end(bool mode)
|
||||
int ffrt_cpu_boost_end(int ctx_id)
|
||||
{
|
||||
int ret = ffrt::CpuBoostEnd(ctx_id);
|
||||
if (ret == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user