-bool Io::test()
-{
- xbt_assert(state_ == State::INITED || state_ == State::STARTED || state_ == State::STARTING ||
- state_ == State::FINISHED);
-
- if (state_ == State::FINISHED)
- return true;
-
- if (state_ == State::INITED || state_ == State::STARTING)
- this->vetoable_start();
-
- if (simcall_io_test(get_impl())) {
- state_ = State::FINISHED;
- this->release_dependencies();
- return true;
- }
-
- return false;