mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 22:37:36 +08:00
7a079547b0
* task queue tests and extensions * clean up test
15 lines
322 B
C
15 lines
322 B
C
#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
|