mirror of
https://github.com/vale981/ray
synced 2025-03-12 22:26:39 -04:00

* draft of local scheduler * API * update APIs * fix * update * Rename halo -> photon. * Add build directory. * Update common submodule. * More renaming. * Fix python ctypes. * Compile in travis. * Process generic messages and not just tasks. * Move free outside of switch. * Formatting and address comments. * Remove event loop from local scheduler state. * Use accept_client from common. * Use bind_ipc_sock from common. * Fix tests. * Update common submodule. * Fix formatting.
15 lines
491 B
C
15 lines
491 B
C
#ifndef PHOTON_SCHEDULER
|
|
#define PHOTON_SCHEDULER
|
|
|
|
/* Establish a connection to a new client. */
|
|
void new_client_connection(local_scheduler_state *s, int listener_sock);
|
|
|
|
/* schedule a task on a given worker. */
|
|
void schedule_on_worker(local_scheduler_state *s, task_spec *task,
|
|
int client_id);
|
|
|
|
/* Handle new incoming task that was scheduled by the globl scheduler on
|
|
* this local scheduler. */
|
|
void schedule_task(local_scheduler_state *s, task_spec *task)
|
|
|
|
#endif
|