summaryrefslogtreecommitdiffstats
path: root/engine/include/core/signal.hpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-23 00:30:10 +0100
committerNao Pross <naopross@thearcway.org>2019-01-23 00:30:10 +0100
commitfd9ecd4e9c7cbe76bc60197a7183ac3ca4e8d0f8 (patch)
tree68f5d42aa3aee7ec2519a8766b8619bb73223d6e /engine/include/core/signal.hpp
parentceh (diff)
downloadflatland-fd9ecd4e9c7cbe76bc60197a7183ac3ca4e8d0f8.tar.gz
flatland-fd9ecd4e9c7cbe76bc60197a7183ac3ca4e8d0f8.zip
Integrate prioritized into task, rename prior_t to priority_t
There was a bunch of code in core/priority.hpp that has been reduced. It works the same as before, just with less stuff. task.cpp is buildable without errors with: $ ninja build/engine/task.o
Diffstat (limited to 'engine/include/core/signal.hpp')
-rw-r--r--engine/include/core/signal.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/include/core/signal.hpp b/engine/include/core/signal.hpp
index 1057f3f..755f3ed 100644
--- a/engine/include/core/signal.hpp
+++ b/engine/include/core/signal.hpp
@@ -22,12 +22,12 @@ namespace flat
object * sender;
void * data; // TODO, avoid this void pointer
- priority prior;
+ priority_t prior;
signal( object * sender,
const std::string& id = "",
void * data,
- prior_t prior = prior_t::none);
+ priority_t prior = priority_t::none);
/* Alias to flat::core::channel::emit() */
bool emit(const std::string& channel) const;
@@ -51,7 +51,7 @@ namespace flat
public:
- channel(const std::string& id = "", prior_t priority = prior_t::none);
+ channel(const std::string& id = "", priority_t priority = priority_t::none);
~channel();
void emit(const signal&);