this interface controls the number of threads working behind.
default is 0 == only syncrhonous.
Change-Id: I8404f33359e6213acc5e578061568fede50cd9a6
*/
static Result init(CanvasEngine engine) noexcept;
static Result term(CanvasEngine engine) noexcept;
+ static Result threads(uint32_t cnt) noexcept;
+ static uint32_t threads() noexcept;
_TVG_DISABLE_CTOR(Initializer);
};
/* Internal Class Implementation */
/************************************************************************/
+static uint32_t threadCnt = 0;
+
/************************************************************************/
/* External Class Implementation */
/************************************************************************/
return Result::Success;
}
+
+Result Initializer::threads(uint32_t cnt) noexcept
+{
+ threadCnt = cnt;
+
+ return Result::Success;
+}
+
+
+uint32_t Initializer::threads() noexcept
+{
+ return threadCnt;
+}
+
#endif /* _TVG_INITIALIZER_CPP_ */