initial commit

This commit is contained in:
Jorijn van der Graaf 2025-02-17 22:31:53 +01:00
commit 5bcaf5952a
14 changed files with 330 additions and 0 deletions

10
main.cpp Normal file
View file

@ -0,0 +1,10 @@
#include <print>
import Crafter.Thread;
using namespace Crafter::Thread;
int main() {
ThreadPool::Start(3);
ThreadPool::Enqueue({[](){std::println("1");}, [](){std::println("2");}, [](){std::println("3");}, [](){std::println("4");}, [](){std::println("5");},[](){std::println("6");}, [](){std::println("7");}, [](){std::println("8");}, [](){std::println("9");}, [](){std::println("10");}});
ThreadPool::Stop();
}