mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
16 lines
362 B
C++
16 lines
362 B
C++
#pragma once
|
|
|
|
#include "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 function<void(int,int)>& loop, int lower, int upper);
|
|
|
|
private:
|
|
static shared_ptr<ThreadPool> pool;
|
|
static bool initialized;
|
|
static void Inititialize();
|
|
};
|