mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 17:02:19 +00:00
e0ff68b3f6
We want a proper C++11, not tr1. We don't target those compilers anyway.
19 lines
357 B
C++
19 lines
357 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
|
|
namespace threading {
|
|
|
|
// Stuff that can execute other stuff, like threadpools, should inherit from this.
|
|
class Executor {
|
|
public:
|
|
virtual void Run(std::function<void()> func) = 0;
|
|
};
|
|
|
|
class SameThreadExecutor : public Executor {
|
|
public:
|
|
virtual void Run(std::function<void()> func);
|
|
};
|
|
|
|
} // namespace threading
|