Skip to content

Commit

Permalink
[ADPF] PerformanceHintAPI - minor platform guard adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
HakimHauston committed Dec 18, 2023
1 parent 23d0327 commit 74df451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/cocos/base/threading/MessageQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74df451

Please sign in to comment.