ppsspp/Common/ThreadPool.h

16 lines
382 B
C
Raw Normal View History

2013-05-01 12:08:01 +00:00
#pragma once
#include "../native/thread/threadpool.h"
class GlobalThreadPool {
public:
// will execute slices of "loop" from "lower" to "upper"
// in parallel on the global thread pool
static void Loop(const std::function<void(int,int)>& loop, int lower, int upper);
private:
static std::shared_ptr<ThreadPool> pool;
static bool initialized;
static void Inititialize();
};