mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 17:45:08 +08:00
22 lines
497 B
C++
22 lines
497 B
C++
#include <sstream>
|
|
|
|
#include "ray/common/task/task_execution_spec.h"
|
|
|
|
namespace ray {
|
|
|
|
size_t TaskExecutionSpecification::NumForwards() const {
|
|
return message_->num_forwards();
|
|
}
|
|
|
|
void TaskExecutionSpecification::IncrementNumForwards() {
|
|
message_->set_num_forwards(message_->num_forwards() + 1);
|
|
}
|
|
|
|
std::string TaskExecutionSpecification::DebugString() const {
|
|
std::ostringstream stream;
|
|
stream << "num_forwards=" << message_->num_forwards();
|
|
return stream.str();
|
|
}
|
|
|
|
} // namespace ray
|