1
0
Fork 0
mirror of https://github.com/vale981/ray synced 2025-03-12 14:16:39 -04:00
ray/test/example_task.h

15 lines
322 B
C
Raw Normal View History

#ifndef EXAMPLE_TASK_H
#define EXAMPLE_TASK_H
#include "task.h"
task_spec *example_task(void) {
function_id func_id = globally_unique_id();
task_spec *task = alloc_task_spec(func_id, 2, 1, 0);
task_args_add_ref(task, globally_unique_id());
task_args_add_ref(task, globally_unique_id());
return task;
}
#endif