From 74df451ce60e966aa89fe7fefdd806c25ed5b7d5 Mon Sep 17 00:00:00 2001 From: Hakim Hauston Date: Mon, 18 Dec 2023 19:10:22 +0800 Subject: [PATCH] [ADPF] PerformanceHintAPI - minor platform guard adjustments --- native/cocos/base/threading/MessageQueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/cocos/base/threading/MessageQueue.cpp b/native/cocos/base/threading/MessageQueue.cpp index 64859b1ca8c..e95866fe630 100644 --- a/native/cocos/base/threading/MessageQueue.cpp +++ b/native/cocos/base/threading/MessageQueue.cpp @@ -278,7 +278,7 @@ MessageQueue::~MessageQueue() { } void MessageQueue::consumerThreadLoop() noexcept { -#if CC_PLATFORM == CC_PLATFORM_ANDROID +#if CC_PLATFORM == CC_PLATFORM_ANDROID && CC_SUPPORT_ADPF == 1 // add tid to PerformanceHintManager int32_t tid = gettid(); ADPFManager::getInstance().AddThreadIdToHintSession(tid);