Simplify the handling of send/receive timeouts

This commit is contained in:
Alexey Rybalchenko
2015-11-19 15:30:37 +01:00
committed by Florian Uhlig
parent 0894900f52
commit afda64a83d
3 changed files with 53 additions and 73 deletions

View File

@@ -161,8 +161,7 @@ class FairMQChannel
/// Sets a timeout on the (blocking) Send method
/// @param timeout timeout value in milliseconds
/// @return true if operation was successfull, otherwise false.
bool SetSendTimeout(const int timeout);
void SetSendTimeout(const int timeout);
/// Gets the current value of the timeout on the (blocking) Send method
/// @return Timeout value in milliseconds. -1 for no timeout.
@@ -170,8 +169,7 @@ class FairMQChannel
/// Sets a timeout on the (blocking) Receive method
/// @param timeout timeout value in milliseconds
/// @return true if operation was successfull, otherwise false.
bool SetReceiveTimeout(const int timeout);
void SetReceiveTimeout(const int timeout);
/// Gets the current value of the timeout on the (blocking) Receive method
/// @return Timeout value in milliseconds. -1 for no timeout.