mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
回退 'Pull Request !48017 : 【挑单weekly_20241104】修改图片加载线程级别'
This commit is contained in:
parent
d4f120c901
commit
6199b88b67
@ -76,7 +76,6 @@ template("ace_osal_ohos_source_set") {
|
||||
"stylus_detector_mgr.cpp",
|
||||
"system_properties.cpp",
|
||||
"thp_extra_manager_impl.cpp",
|
||||
"thread_priority.cpp",
|
||||
"trace_id_impl.cpp",
|
||||
"view_data_wrap_ohos.cpp",
|
||||
"want_wrap_ohos.cpp",
|
||||
|
@ -1,21 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "base/thread/thread_priority.h"
|
||||
|
||||
namespace OHOS::Ace {
|
||||
|
||||
void ThreadPriority::SetThreadPriority(OHOS::Ace::TaskExecutor::TaskType taskType) {}
|
||||
} // namespace OHOS::Ace
|
@ -89,7 +89,6 @@ ohos_source_set("preview_osal_source") {
|
||||
"system_bar_style_ohos.cpp",
|
||||
"system_properties.cpp",
|
||||
"task/task_runner_adapter_impl.cpp",
|
||||
"thread_priority.cpp",
|
||||
"time_event_proxy_preview.cpp",
|
||||
"trace_id_impl.cpp",
|
||||
"view_data_wrap_impl.cpp",
|
||||
|
@ -1,21 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "base/thread/thread_priority.h"
|
||||
|
||||
namespace OHOS::Ace {
|
||||
|
||||
void ThreadPriority::SetThreadPriority(OHOS::Ace::TaskExecutor::TaskType taskType) {}
|
||||
} // namespace OHOS::Ace
|
@ -20,7 +20,6 @@
|
||||
#include "base/log/log.h"
|
||||
#include "base/memory/memory_monitor.h"
|
||||
#include "base/thread/frame_trace_adapter.h"
|
||||
#include "base/thread/thread_priority.h"
|
||||
|
||||
namespace OHOS::Ace {
|
||||
namespace {
|
||||
@ -191,7 +190,6 @@ void BackgroundTaskExecutor::ThreadLoop(uint32_t threadNo)
|
||||
return;
|
||||
}
|
||||
SetThreadName(threadNo);
|
||||
ThreadPriority::SetThreadPriority(OHOS::Ace::TaskExecutor::TaskType::BACKGROUND);
|
||||
Task task;
|
||||
const uint32_t purgeFlag = (1u << (threadNo - 1u));
|
||||
std::unique_lock<std::mutex> lock(mutex_);
|
||||
|
@ -1,32 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2023 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef FOUNDATION_ACE_FRAMEWORKS_BASE_THREAD_THREAD_PRIORITY_H
|
||||
#define FOUNDATION_ACE_FRAMEWORKS_BASE_THREAD_THREAD_PRIORITY_H
|
||||
|
||||
#include "base/thread/task_executor.h"
|
||||
|
||||
namespace OHOS::Ace {
|
||||
class ThreadPriority {
|
||||
public:
|
||||
~ThreadPriority() = default;
|
||||
static void SetThreadPriority(OHOS::Ace::TaskExecutor::TaskType taskType);
|
||||
static void setBackGroundThreadPriority();
|
||||
private:
|
||||
ThreadPriority() = default;
|
||||
};
|
||||
} // namespace OHOS::Ace
|
||||
|
||||
#endif // FOUNDATION_ACE_FRAMEWORKS_BASE_THREAD_THREAD_PRIORITY_H
|
Loading…
Reference in New Issue
Block a user