diff options
| author | Léo Lam <leo@leolam.fr> | 2021-01-31 15:39:44 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-01-31 16:23:51 +0100 |
| commit | 8ac67528668d9a7f74e20c29e854449609637f54 (patch) | |
| tree | aa5635f38ce4d756094d05490eea1d60587c70a0 /src/KingSystem/Utils/Thread/Message.cpp | |
| parent | 176d68769881ba3a80548c89dc02f2ea4aff814a (diff) | |
ksys: Add MessageProcessor
Diffstat (limited to 'src/KingSystem/Utils/Thread/Message.cpp')
| -rw-r--r-- | src/KingSystem/Utils/Thread/Message.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/KingSystem/Utils/Thread/Message.cpp b/src/KingSystem/Utils/Thread/Message.cpp index 96eada1d..0ec58ee5 100644 --- a/src/KingSystem/Utils/Thread/Message.cpp +++ b/src/KingSystem/Utils/Thread/Message.cpp @@ -6,13 +6,14 @@ Message::Message() = default; Message::Message(const MesTransceiverId& source, const MesTransceiverId& destination, const MessageType& type, void* user_data, const Message::DelayParams& delay_params, - bool x) + bool ack) : mSource(source), mDestination(destination), mType(type), mUserData(user_data), - mDelayParams(delay_params), _60(x) {} + mDelayParams(delay_params), mShouldAck(ack) {} Message::Message(const MesTransceiverId& source, const MessageType& type, void* user_data, - const Message::DelayParams& delay_params, bool x) - : mSource(source), mType(type), mUserData(user_data), mDelayParams(delay_params), _60(x) {} + const Message::DelayParams& delay_params, bool ack) + : mSource(source), mType(type), mUserData(user_data), mDelayParams(delay_params), + mShouldAck(ack) {} Message::~Message() = default; @@ -46,8 +47,8 @@ bool Message::shouldBeProcessed() const { return mDelayParams.delayer->shouldProcessMessage(); } -bool Message::getField60() const { - return _60; +bool Message::shouldAck() const { + return mShouldAck; } void Message::setDestination(const MesTransceiverId& dest) { |
