Files
MapLibreParticleLab/src/mbgl/util/async_task.hpp
Thiago Marcos P. Santos d7fdcc73bf [core] Get rid of ::unref() for Timer and AsyncTask
Not need, legacy from libuv. The RunLoop keep the main
loop running until is explicitly no longer needed.
2016-01-09 01:26:29 +02:00

28 lines
413 B
C++

#ifndef MBGL_UTIL_ASYNC_TASK
#define MBGL_UTIL_ASYNC_TASK
#include <mbgl/util/noncopyable.hpp>
#include <memory>
#include <functional>
namespace mbgl {
namespace util {
class AsyncTask : private util::noncopyable {
public:
AsyncTask(std::function<void()>&&);
~AsyncTask();
void send();
private:
class Impl;
std::unique_ptr<Impl> impl;
};
} // namespace util
} // namespace mbgl
#endif