/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2012, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2016, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
* Known contributors to this file:
* Sasha Mikheev
* Steve McClure, 1998
- * Markus Armbruster, 2005-2011
+ * Markus Armbruster, 2005-2012
* Ron Koenderink, 2007-2009
*/
ctx->wakeup = 0;
pthread_setspecific(ctx_key, ctx);
pthread_mutex_lock(&mtx_ctxsw);
- logerror("pthreads initialized");
return 0;
}
empth_t *
empth_self(void)
{
- return pthread_getspecific(ctx_key);
+ return udata ? pthread_getspecific(ctx_key) : NULL;
}
char *