Add all the files

This commit is contained in:
Exzap 2022-08-22 22:21:23 +02:00
parent e3db07a16a
commit d60742f52b
1445 changed files with 430238 additions and 0 deletions

View file

View file

@ -0,0 +1,15 @@
#include <thread>
class ThreadPool
{
public:
template<class TFunction, class... TArgs>
static void FireAndForget(TFunction&& f, TArgs&&... args)
{
// todo - find a way to use std::async here so we can utilize thread pooling?
std::thread t(std::forward<TFunction>(f), std::forward<TArgs>(args)...);
t.detach();
}
};