/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* lwp.c: Interface from Empire threads to LWP threads
- *
+ *
* Known contributors to this file:
* Sasha Mikheev
- * Markus Armbruster, 2006-2007
+ * Markus Armbruster, 2006-2009
*/
#include <config.h>
{
if (!flags)
flags = empth_flags;
- return lwpCreate(1, entry, size, flags, name, 0, 0, ud);
+ return lwpCreate(1, entry, size, flags, name, 0, NULL, ud);
}
empth_t *
lwpYield();
}
-void
-empth_terminate(empth_t *a)
-{
- lwpTerminate(a);
-}
-
-void
-empth_select(int fd, int flags)
+int
+empth_select(int fd, int flags, struct timeval *timeout)
{
- lwpSleepFd(fd, flags);
+ return lwpSleepFd(fd, flags, timeout);
}
void