mirror of
https://github.com/wassname/ray.git
synced 2026-07-23 13:10:11 +08:00
Second Part of Internal API Refactor (#1326)
This commit is contained in:
committed by
Robert Nishihara
parent
4bb5b6bd5b
commit
3d224c4edf
+7
-9
@@ -11,7 +11,9 @@
|
||||
|
||||
#include "format/common_generated.h"
|
||||
|
||||
typedef uint8_t TaskSpec;
|
||||
using namespace ray;
|
||||
|
||||
typedef char TaskSpec;
|
||||
|
||||
class TaskExecutionSpec {
|
||||
public:
|
||||
@@ -82,10 +84,6 @@ class TaskExecutionSpec {
|
||||
|
||||
class TaskBuilder;
|
||||
|
||||
#define NIL_TASK_ID NIL_ID
|
||||
#define NIL_ACTOR_ID NIL_ID
|
||||
#define NIL_FUNCTION_ID NIL_ID
|
||||
|
||||
typedef UniqueID FunctionID;
|
||||
|
||||
/** The task ID is a deterministic hash of the function ID that the task
|
||||
@@ -189,7 +187,7 @@ void TaskSpec_start_construct(TaskBuilder *B,
|
||||
* @param spec The task spec whose ID and return object IDs should be computed.
|
||||
* @return Void.
|
||||
*/
|
||||
uint8_t *TaskSpec_finish_construct(TaskBuilder *builder, int64_t *size);
|
||||
TaskSpec *TaskSpec_finish_construct(TaskBuilder *builder, int64_t *size);
|
||||
|
||||
/**
|
||||
* Return the function ID of the task.
|
||||
@@ -256,7 +254,7 @@ bool TaskSpec_arg_is_actor_dummy_object(TaskSpec *spec, int64_t arg_index);
|
||||
* @param spec The task_spec in question.
|
||||
* @return The driver ID of the task.
|
||||
*/
|
||||
UniqueID TaskSpec_driver_id(TaskSpec *spec);
|
||||
UniqueID TaskSpec_driver_id(const TaskSpec *spec);
|
||||
|
||||
/**
|
||||
* Return the task ID of the parent task.
|
||||
@@ -264,7 +262,7 @@ UniqueID TaskSpec_driver_id(TaskSpec *spec);
|
||||
* @param spec The task_spec in question.
|
||||
* @return The task ID of the parent task.
|
||||
*/
|
||||
TaskID TaskSpec_parent_task_id(TaskSpec *spec);
|
||||
TaskID TaskSpec_parent_task_id(const TaskSpec *spec);
|
||||
|
||||
/**
|
||||
* Return the task counter of the parent task. For example, this equals 5 if
|
||||
@@ -281,7 +279,7 @@ int64_t TaskSpec_parent_counter(TaskSpec *spec);
|
||||
* @param spec The task_spec in question.
|
||||
* @return The task ID of the task.
|
||||
*/
|
||||
TaskID TaskSpec_task_id(TaskSpec *spec);
|
||||
TaskID TaskSpec_task_id(const TaskSpec *spec);
|
||||
|
||||
/**
|
||||
* Get the number of arguments to this task.
|
||||
|
||||
Reference in New Issue
Block a user