Integration::SetTapMaximumAllowedTime(mEnvironmentOptions->GetTapMaximumAllowedTime());
}
-
std::string systemCachePath = GetSystemCachePath();
if(!systemCachePath.empty())
{
windowImpl.GetRootLayer().SetProperty(Dali::Actor::Property::LAYOUT_DIRECTION, mRootLayoutDirection);
// Add the new Window to the container - the order is not important
- mWindows.push_back(&windowImpl);
+ {
+ Dali::Mutex::ScopedLock lock(mMutex);
+ mWindows.push_back(&windowImpl);
+ }
Dali::RenderSurfaceInterface* surface = windowImpl.GetSurface();
{
if(*iter == &windowImpl)
{
+ Dali::Mutex::ScopedLock lock(mMutex);
mWindows.erase(iter);
return true;
}
{
if((*iter)->GetName() == childWindowName)
{
+ Dali::Mutex::ScopedLock lock(mMutex);
mWindows.erase(iter);
return true;
}
{
if((*iter)->GetId() == childWindow->GetId())
{
+ Dali::Mutex::ScopedLock lock(mMutex);
mWindows.erase(iter);
return true;
}
void Adaptor::GetWindowContainerInterface(WindowContainer& windows)
{
+ Dali::Mutex::ScopedLock lock(mMutex);
windows = mWindows;
}
mSystemTracer(),
mObjectProfiler(nullptr),
mSocketFactory(),
+ mMutex(),
mThreadMode(threadMode),
mEnvironmentOptionsOwned(environmentOptions ? false : true /* If not provided then we own the object */),
mUseRemoteSurface(false),
*/
// EXTERNAL INCLUDES
+#include <dali/devel-api/threading/mutex.h>
#include <dali/integration-api/render-controller.h>
#include <dali/public-api/common/vector-wrapper.h>
#include <dali/public-api/math/rect.h>
SystemTrace mSystemTracer; ///< System tracer
ObjectProfiler* mObjectProfiler; ///< Tracks object lifetime for profiling
SocketFactory mSocketFactory; ///< Socket factory
+ Mutex mMutex; ///< Mutex
ThreadMode mThreadMode; ///< The thread mode
const bool mEnvironmentOptionsOwned : 1; ///< Whether we own the EnvironmentOptions (and thus, need to delete it)
bool mUseRemoteSurface : 1; ///< whether the remoteSurface is used or not