/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2011, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
/* Make this the running thread. */
loc_RunThisThread(NULL);
- logerror("NT pthreads initialized");
return 0;
}
goto bad;
}
- loc_debug("new thread id is %ld", pThread->ulThreadID);
+ loc_debug("new thread ID is %ld", pThread->ulThreadID);
empth_yield();
return pThread;
empth_t *
empth_self(void)
{
- empth_t *pThread = TlsGetValue(dwTLSIndex);
-
- return pThread;
+ return ppvUserData ? TlsGetValue(dwTLSIndex) : NULL;
}
/************************