mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-02 22:26:25 +00:00
19 lines
364 B
C++
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
|