-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement C++ components of deadlock detection
- Loading branch information
1 parent
f98e5a3
commit 94869da
Showing
19 changed files
with
270 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "receive_timeout_handler.hpp" | ||
|
||
namespace libmuscle { namespace _MUSCLE_IMPL_NS { | ||
|
||
ReceiveTimeoutHandler::ReceiveTimeoutHandler( | ||
MMPClient& manager, std::string const& peer_instance, | ||
std::string const& port_name, Optional<int> slot, double timeout) | ||
: manager_(manager) | ||
, peer_instance_(peer_instance) | ||
, port_name_(port_name) | ||
, slot_(slot) | ||
, timeout_(timeout) {} | ||
|
||
double ReceiveTimeoutHandler::get_timeout() | ||
{ | ||
return timeout_; | ||
} | ||
|
||
void ReceiveTimeoutHandler::on_timeout() | ||
{ | ||
manager_.waiting_for_receive(peer_instance_, port_name_, slot_); | ||
} | ||
|
||
void ReceiveTimeoutHandler::on_receive() | ||
{ | ||
manager_.waiting_for_receive_done(peer_instance_, port_name_, slot_); | ||
} | ||
|
||
} } |
Oops, something went wrong.