/*
* 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
*
* Known contributors to this file:
* Sasha Mikheev
- * Markus Armbruster, 2006-2007
+ * Markus Armbruster, 2006-2008
*/
#include <config.h>
#include <signal.h>
#include <time.h>
#include "empthread.h"
+#include "file.h"
#include "misc.h"
/* Flags that were passed to empth_init() */
{
if (!flags)
flags = empth_flags;
+ ef_make_stale();
return lwpCreate(1, entry, size, flags, name, 0, 0, ud);
}
void
empth_exit(void)
{
+ ef_make_stale();
lwpExit();
}
void
empth_yield(void)
{
+ ef_make_stale();
lwpYield();
}
-void
-empth_terminate(empth_t *a)
-{
- lwpTerminate(a);
-}
-
int
empth_select(int fd, int flags, struct timeval *timeout)
{
+ ef_make_stale();
return lwpSleepFd(fd, flags, timeout);
}
int
empth_sleep(time_t until)
{
+ ef_make_stale();
return lwpSleepUntil(until);
}
int sig, err;
time_t now;
+ ef_make_stale();
sigemptyset(&set);
sigaddset(&set, SIGHUP);
sigaddset(&set, SIGINT);
void
empth_rwlock_wrlock(empth_rwlock_t *rwlock)
{
+ ef_make_stale();
lwp_rwlock_wrlock(rwlock);
}
void
empth_rwlock_rdlock(empth_rwlock_t *rwlock)
{
+ ef_make_stale();
lwp_rwlock_rdlock(rwlock);
}