Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#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