Threads

Parallel execution.

Example

#include <r8/core/thread.h>
using namespace R8;

class MyThread
   : public Core::IRunnable
{
private:
   void onRun() override {
      LogInfo("Hello from thread!");
   }
};
MyThread myThread;
Core::Thread thread(&myThread, "MyThread");
thread.join();