/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1994-2016, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1994-2020, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
* Copyright (C) 1991-3 Stephen Crane
*
* lwp.h -- prototypes and structures for lightweight processes
*
* Known contributors to this file:
- * Markus Armbruster, 2004-2013
+ * Markus Armbruster, 2004-2020
* Ron Koenderink, 2007-2009
*/
#ifndef LWP_H
#define LWP_H
-#include <signal.h>
#include <sys/time.h>
#define LWP_STACKCHECK 0x1
#define LWP_MAX_PRIO 8
-struct lwpProc *lwpInitSystem(int prio, void **ctxp, int flags, sigset_t *);
+struct lwpProc *lwpInitSystem(int prio, void **ctxp, int flags, int[]);
struct lwpProc *lwpCreate(int prio, void (*)(void *), int size,
int flags, char *name,
int argc, char **argv, void *ud);
int lwpSleepFd(int fd, int flags, struct timeval *timeout);
int lwpSleepUntil(time_t until);
void lwpWakeup(struct lwpProc *);
-int lwpSigWait(sigset_t *set, int *sig);
+int lwpSigWait(void);
void *lwpGetUD(struct lwpProc *);
void lwpSetUD(struct lwpProc *, char *ud);
int lwpSetPriority(int prio);