ppsspp/ext/native/thread/executor.h
2015-09-06 12:24:17 -07:00

19 lines
364 B
C++

#pragma once
#include "base/functional.h"
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