| 1 | // Copyright 2013 The Flutter Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef FLUTTER_FML_WAKEABLE_H_ |
| 6 | #define FLUTTER_FML_WAKEABLE_H_ |
| 7 | |
| 8 | #include "flutter/fml/time/time_point.h" |
| 9 | |
| 10 | namespace fml { |
| 11 | |
| 12 | /// Interface over the ability to \p WakeUp a \p fml::MessageLoopImpl. |
| 13 | /// \see fml::MessageLoopTaskQueues |
| 14 | class Wakeable { |
| 15 | public: |
| 16 | virtual ~Wakeable() {} |
| 17 | |
| 18 | virtual void WakeUp(fml::TimePoint time_point) = 0; |
| 19 | }; |
| 20 | |
| 21 | } // namespace fml |
| 22 | |
| 23 | #endif // FLUTTER_FML_WAKEABLE_H_ |
| 24 | |