Change-Id: I73b902c89de179e1cce86dd98ab0d9f411d39cc5
#include <thread>
#include "vtaskqueue.h"
+#ifdef __linux__
+#include <pthread.h>
+#include <sstream>
+#endif
+
class RleTaskScheduler {
const unsigned _count{std::thread::hardware_concurrency()};
std::vector<std::thread> _threads;
SW_FT_Stroker stroker;
SW_FT_Stroker_New(&stroker);
+ // Create Thread Name for Debugging (Linux)
+#ifdef __linux__
+ std::ostringstream nameStream;
+ nameStream << "lottie-tsk-" << i;
+ pthread_setname_np(pthread_self(), nameStream.str().c_str());
+#endif
+
// Task Loop
VTask task;
while (true) {