mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
18 lines
551 B
C
18 lines
551 B
C
#ifndef PHOTON_SCHEDULER_H
|
|
#define PHOTON_SCHEDULER_H
|
|
|
|
#include "task.h"
|
|
|
|
typedef struct local_scheduler_state local_scheduler_state;
|
|
|
|
/* Establish a connection to a new client. */
|
|
void new_client_connection(event_loop *loop, int listener_sock, void *context,
|
|
int events);
|
|
|
|
/* Assign a task to a worker. */
|
|
void handle_get_task(local_scheduler_state *s, int client_sock);
|
|
|
|
/* Handle incoming submit request by a worker. */
|
|
void handle_submit_task(local_scheduler_state *s, task_spec *task);
|
|
|
|
#endif /* PHOTON_SCHEDULER_H */
|