Signed-off-by: wangyulie <wanglieyu@126.com>
This commit is contained in:
wangyulie 2024-10-22 17:40:57 +08:00
parent b568bbf244
commit 20e24f8b6e
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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