forked from Dynamitos/Seele
Some actually useful metal changes???
This commit is contained in:
1 parent
2811757476
commit
32d3bd8ad8
26 files changed
+152
-73
No files matched your search
@@ -7,7 +7,7 @@
|
||||
namespace Seele {
|
||||
class ThreadPool {
|
||||
public:
|
||||
ThreadPool(uint32 numWorkers = std::thread::hardware_concurrency() - 2);
|
||||
ThreadPool(uint32 numWorkers = 1);
|
||||
~ThreadPool();
|
||||
void runAndWait(List<std::function<void()>> functions);
|
||||
void runAsync(std::function<void()> func);
|
||||
@@ -36,4 +36,4 @@ class ThreadPool {
|
||||
bool running = true;
|
||||
};
|
||||
ThreadPool& getThreadPool();
|
||||
} // namespace Seele
|
||||
} // namespace Seele
|
||||
Reference in new issue
Block a user