summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1fb2f54)
if (state_ == finished)
xbt_die("Don't call test on a finished comm.");
by:
if (state_ == finished)
return true;
Since testing a finished comm should be a feature, not a bug
bool Comm::test() {
xbt_assert(state_ == inited || state_ == started || state_ == finished);
bool Comm::test() {
xbt_assert(state_ == inited || state_ == started || state_ == finished);
- if (state_ == finished)
- xbt_die("Don't call test on a finished comm.");
+ if (state_ == finished) {
+ return true;
+ }
if (state_ == inited) {
this->start();
if (state_ == inited) {
this->start();