summaryrefslogtreecommitdiffstats
path: root/engine/include/core/task.hpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-23 12:04:58 +0100
committerNao Pross <naopross@thearcway.org>2019-01-23 12:04:58 +0100
commitf138cf17bd42d43c2177d494b78d3e8486b52714 (patch)
tree8c35767f01f8ebcf3ed5f1e7ff1f898e6bdf9a5a /engine/include/core/task.hpp
parentRemove old lib/libwrapsdl2 (diff)
downloadflatland-f138cf17bd42d43c2177d494b78d3e8486b52714.tar.gz
flatland-f138cf17bd42d43c2177d494b78d3e8486b52714.zip
Use custom comparison for core::prioritize (instead of std::less)
This way, another class can iherit core::prioritized and overload its operator<().
Diffstat (limited to '')
-rw-r--r--engine/include/core/task.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/include/core/task.hpp b/engine/include/core/task.hpp
index b6ddad1..90e3d97 100644
--- a/engine/include/core/task.hpp
+++ b/engine/include/core/task.hpp
@@ -18,7 +18,7 @@ namespace flat {
std::function<void()> m_callback;
};
- struct job : public std::multiset<task> {
+ struct job : public queue<task> {
inline auto add_task(task t) {
this->insert(t);
}
@@ -26,4 +26,4 @@ namespace flat {
void invoke_tasks();
};
}
-} \ No newline at end of file
+}