ray/photon_scheduler.h
2016-10-04 16:57:16 -07:00

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 */