wip
This commit is contained in:
1 parent
efb9eff3b1
commit
f45201aa45
3 files changed
+23
-1
No files matched your search
+12
-1
@@ -4,11 +4,22 @@
|
||||
namespace Plains {
|
||||
namespace Core {
|
||||
|
||||
EventBus::EventBus(Logger& logger) : logger_(logger) {};
|
||||
EventBus::EventBus(Logger& logger) : logger_(logger), thread_(&EventBus::run, this) {
|
||||
logger_.debug.ln("Hi from EventBus Constructor. Not Theaded");
|
||||
}
|
||||
|
||||
EventBus::~EventBus() {
|
||||
thread_.join();
|
||||
}
|
||||
|
||||
void EventBus::test() {
|
||||
logger_.debug << "Testing from within EventBus!" << Logger::commit;
|
||||
}
|
||||
|
||||
void EventBus::run() {
|
||||
logger_.debug.ln("Hi from EventBus run method! From within Event Thread!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}}
|
||||
Reference in new issue
Block a user