Add GetRenderThreadId()
[platform/core/uifw/dali-adaptor.git] / dali / internal / system / common / thread-controller.h
index ba58948..45277a1 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_THREAD_CONTROLLER_H
 
 /*
- * 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.
@@ -141,6 +141,12 @@ public:
    */
   void AddSurface(Dali::RenderSurfaceInterface* surface);
 
+  /**
+   * @brief Gets the thread id.
+   * @return The thread id.
+   */
+  int32_t GetThreadId() const;
+
 private:
   // Undefined copy constructor.
   ThreadController(const ThreadController&) = delete;