diff --git a/src/main.cpp b/example/example.cpp similarity index 97% rename from src/main.cpp rename to example/example.cpp index 4f6f270..ea90694 100644 --- a/src/main.cpp +++ b/example/example.cpp @@ -1,8 +1,7 @@ #include #include -#include -#include "ThreadPool.h" +#include "../include/ThreadPool.h" std::random_device rd; std::mt19937 mt(rd()); @@ -37,7 +36,7 @@ int multiply_return(const int a, const int b) { } -int main() { +void example() { // Create pool with 3 threads ThreadPool pool(3);