summaryrefslogtreecommitdiff
path: root/include/mbgl/util/work_request.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-08-31 14:40:09 +0300
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-11-16 12:25:47 -0800
commit36581f3d3015d525db92248004e9dc7477705694 (patch)
tree6f5d6fb38f3ef925a1afbbf41762581b3e0dbf66 /include/mbgl/util/work_request.hpp
parent2eb0203bf43e635b756bbf1322c53b8d299d4b37 (diff)
downloadqtlocation-mapboxgl-36581f3d3015d525db92248004e9dc7477705694.tar.gz
[core] Do not pass uv_loop_t around
This should be abstracted by util::RunLoop
Diffstat (limited to 'include/mbgl/util/work_request.hpp')
-rw-r--r--include/mbgl/util/work_request.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/mbgl/util/work_request.hpp b/include/mbgl/util/work_request.hpp
new file mode 100644
index 0000000000..f2aa2bbacc
--- /dev/null
+++ b/include/mbgl/util/work_request.hpp
@@ -0,0 +1,24 @@
+#ifndef MBGL_UTIL_WORK_REQUEST
+#define MBGL_UTIL_WORK_REQUEST
+
+#include <mbgl/util/noncopyable.hpp>
+
+#include <memory>
+
+namespace mbgl {
+
+class WorkTask;
+
+class WorkRequest : public util::noncopyable {
+public:
+ using Task = std::shared_ptr<WorkTask>;
+ WorkRequest(Task);
+ ~WorkRequest();
+
+private:
+ std::shared_ptr<WorkTask> task;
+};
+
+}
+
+#endif