8 #ifndef SkExecutor_DEFINED
9 #define SkExecutor_DEFINED
21 bool allowBorrowing =
true);
23 bool allowBorrowing =
true);
30 virtual void add(std::function<
void(
void)>) = 0;
Definition: SkExecutor.h:15
static std::unique_ptr< SkExecutor > MakeFIFOThreadPool(int threads=0, bool allowBorrowing=true)
virtual void add(std::function< void(void)>)=0
static void SetDefault(SkExecutor *)
virtual void borrow()
Definition: SkExecutor.h:33
SkExecutor(const SkExecutor &)=delete
SkExecutor & operator=(const SkExecutor &)=delete
static std::unique_ptr< SkExecutor > MakeLIFOThreadPool(int threads=0, bool allowBorrowing=true)
static SkExecutor & GetDefault()