| Index: include/AdblockPlus/Scheduler.h |
| diff --git a/include/AdblockPlus/Scheduler.h b/include/AdblockPlus/Scheduler.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1d30041f9b3f2d33dcbe1625630f48c8bf805cfe |
| --- /dev/null |
| +++ b/include/AdblockPlus/Scheduler.h |
| @@ -0,0 +1,33 @@ |
| +/* |
| +* This file is part of Adblock Plus <https://adblockplus.org/>, |
| +* Copyright (C) 2006-present eyeo GmbH |
| +* |
| +* Adblock Plus is free software: you can redistribute it and/or modify |
| +* it under the terms of the GNU General Public License version 3 as |
| +* published by the Free Software Foundation. |
| +* |
| +* Adblock Plus is distributed in the hope that it will be useful, |
| +* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| +* GNU General Public License for more details. |
| +* |
| +* You should have received a copy of the GNU General Public License |
| +* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| +*/ |
| + |
| +#ifndef ADBLOCK_PLUS_SCHEDULER_H |
| +#define ADBLOCK_PLUS_SCHEDULER_H |
| + |
| +namespace AdblockPlus |
| +{ |
| + /** |
| + * Task object which can be passed to `Scheduler` to be executed asynchronously. |
| + */ |
| + typedef std::function<void()> SchedulerTask; |
| + |
| + /** |
| + * Scheduler object executing tasks asynchronously. |
| + */ |
| + typedef std::function<void(const SchedulerTask&)> Scheduler; |
| +} |
| +#endif // ADBLOCK_PLUS_SCHEDULER_H |