From fd9ecd4e9c7cbe76bc60197a7183ac3ca4e8d0f8 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Wed, 23 Jan 2019 00:30:10 +0100 Subject: 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 --- engine/include/core/signal.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/include/core/signal.hpp') 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&); -- cgit v1.2.1