L
libster
Hello,
I'm writing code and I have a scenario where I'm waiting to receive a
msg and a timeout message at the same time. For example, I've set a
timer so that
if I don't receive a message in a certain time, then I will receive a
timeout
message. Based on which message I receive first I will perform certain
tasks. Is
there a good way to handle this in C++ without using statemachines. If
I receive the
timeout message first then what do I do when the other message comes in
or vice-versa.
Need to determine a way to find out, once I receive a message, if the
other
message has been received yet. Any advice would be greatly appreciated.
thanks,
Libster
I'm writing code and I have a scenario where I'm waiting to receive a
msg and a timeout message at the same time. For example, I've set a
timer so that
if I don't receive a message in a certain time, then I will receive a
timeout
message. Based on which message I receive first I will perform certain
tasks. Is
there a good way to handle this in C++ without using statemachines. If
I receive the
timeout message first then what do I do when the other message comes in
or vice-versa.
Need to determine a way to find out, once I receive a message, if the
other
message has been received yet. Any advice would be greatly appreciated.
thanks,
Libster