From 29bd46323c76144fd0fbc7524f4948cd3b07a501 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Tue, 12 Jul 2022 16:07:19 +0900 Subject: [PATCH] Add mutex to NativeImageSourceImpl Change-Id: I86c6c5906832f314622d79071c40741553034130 --- .../imaging/tizen/native-image-source-impl-tizen.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp b/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp index f8e8f7c2a..153848f6c 100644 --- a/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp +++ b/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ namespace Adaptor { namespace { -const char* SAMPLER_TYPE = "samplerExternalOES"; +const char* SAMPLER_TYPE = "samplerExternalOES"; // clang-format off tbm_format FORMATS_BLENDING_REQUIRED[] = { @@ -556,6 +556,7 @@ bool NativeImageSourceTizen::ReleaseBuffer() void NativeImageSourceTizen::SetResourceDestructionCallback(EventThreadCallback* callback) { + Dali::Mutex::ScopedLock lock(mMutex); mResourceDestructionCallback = std::unique_ptr(callback); } -- 2.34.1