mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 22:12:41 +08:00
64c5e0880e
* Restructure to have separate client and scheduler files. Shared stuff is in photon.h. * Let workers get tasks from local scheduler.
15 lines
334 B
C
15 lines
334 B
C
#ifndef PHOTON_H
|
|
#define PHOTON_H
|
|
|
|
enum photon_message_type {
|
|
/** Notify the local scheduler that a task has finished. */
|
|
TASK_DONE = 64,
|
|
/** Get a new task from the local scheduler. */
|
|
GET_TASK,
|
|
/** This is sent from the local scheduler to a worker to tell the worker to
|
|
* execute a task. */
|
|
EXECUTE_TASK,
|
|
};
|
|
|
|
#endif
|