From: Seungho Baek Date: Tue, 5 Nov 2024 08:38:01 +0000 (+0900) Subject: Block Awake when the Adaptor is not available X-Git-Tag: dali_2.3.49~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F319928%2F2;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Block Awake when the Adaptor is not available Change-Id: I8b8845534cfd21f534692662891043dab32ff9f2 Signed-off-by: Seungho Baek --- diff --git a/dali-csharp-binder/common/processor-controller.cpp b/dali-csharp-binder/common/processor-controller.cpp index fd639296..ed065796 100644 --- a/dali-csharp-binder/common/processor-controller.cpp +++ b/dali-csharp-binder/common/processor-controller.cpp @@ -109,26 +109,27 @@ void ProcessorController::RemovePostCallback(ProcessorControllerProcessCallback void ProcessorController::Awake() { - DALI_ASSERT_ALWAYS(mProcessRegistered && "ProcessorController should be initialized before call Awake"); - - if(!mProcessingEvents && !mKeepRenderingApplied) + if(DALI_LIKELY(Dali::Adaptor::IsAvailable())) { - if(DALI_LIKELY(Dali::Adaptor::IsAvailable())) ///< Avoid worker thread calling. + DALI_ASSERT_ALWAYS(mProcessRegistered && "ProcessorController should be initialized before call Awake"); + + if(!mProcessingEvents && !mKeepRenderingApplied) { auto stage = Dali::Stage::GetCurrent(); stage.KeepRendering(0.0f); mKeepRenderingApplied = true; } - } - else if(mProcessingEvents && !mProcessEventsIdleRequested) - { - if(DALI_LIKELY(Dali::Adaptor::IsAvailable())) ///< Avoid worker thread calling. + else if(mProcessingEvents && !mProcessEventsIdleRequested) { // Request ProcessEvents on idle when we are processing now. Dali::Adaptor::Get().RequestProcessEventsOnIdle(); mProcessEventsIdleRequested = true; } } + else + { + DALI_LOG_ERROR("Awake() failed, Adaptore is not available.\n"); + } } void ProcessorController::RegisterProcess()