Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
27 lines (18 sloc) 539 Bytes
#ifndef _PANCAKE_WORKERS_H
#define _PANCAKE_WORKERS_H
#include "Pancake.h"
#include "PancakeNetwork.h"
#define PANCAKE_WORKER_GRACEFUL_SHUTDOWN "\1"
#define PANCAKE_WORKER_GRACEFUL_SHUTDOWN_INT '\1'
typedef struct _PancakeWorker {
String name;
PancakeWorkerEntryFunction run;
Int32 pid;
Int32 masterSocket;
PancakeSocket workerSocket;
UByte isMaster;
} PancakeWorker;
PANCAKE_API UByte PancakeRunWorker(PancakeWorker *worker);
extern PancakeWorker *PancakeCurrentWorker;
extern PancakeWorker **PancakeWorkerRegistry;
#endif
You can’t perform that action at this time.