X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fadaptor-framework%2Fscene-holder-impl.h;h=3a830f93622652782d03e938035a75538e21776a;hb=ae6dc30882f7a881bde477d6120bfe62360b4742;hp=10051b90f6ba3580d4c30d0c2095e150f0606acb;hpb=398db97500b00d1a7efdbbbc69eb60956b88b038;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/integration-api/adaptor-framework/scene-holder-impl.h b/dali/integration-api/adaptor-framework/scene-holder-impl.h index 10051b9..3a830f9 100644 --- a/dali/integration-api/adaptor-framework/scene-holder-impl.h +++ b/dali/integration-api/adaptor-framework/scene-holder-impl.h @@ -21,6 +21,7 @@ // EXTERNAL INCLUDES #include #include +#include #include #include #include @@ -148,6 +149,13 @@ public: void Resume(); /** + * @brief Checks whether this scene holder is being deleted in the event thread. + * + * @return true if this scene holder is being deleted in the event thread, or false if not. + */ + bool IsBeingDeleted() const { return mIsBeingDeleted; } + + /** * @copydoc Dali::Integration::SceneHolder::FeedTouchPoint */ void FeedTouchPoint( Dali::Integration::Point& point, int timeStamp ); @@ -273,6 +281,8 @@ protected: Dali::Integration::TouchEventCombiner mCombiner; ///< Combines multi-touch events. + std::atomic mIsBeingDeleted; ///< This is set only from the event thread and read only from the render thread + bool mAdaptorStarted:1; ///< Whether the adaptor has started or not bool mVisible:1; ///< Whether the scene is visible or not };