ppsspp/ext/native/thread/executor.h
Florent Castelli e0ff68b3f6 c++11: Remove compat header base/functional.h
We want a proper C++11, not tr1. We don't target those compilers anyway.
2016-10-12 11:32:45 +02:00

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