empserver/include
Markus Armbruster cea39829af Make empth_wakeup() and empth_terminate() wake up empth_sleep(), and
empth_sleep() return whether that happened:
[EMPTH_LWP] (lwpWakeupSleep): New, factored out of lwpSelect().
[EMPTH_LWP] (lwpSelect): Use it.
[EMPTH_LWP] (lwpWakeup): New.  Call lwpWakeupFd() if sleeping in
lwpSleepFd(), lwpWakeupSleep() if sleeping in lwpSleepUntil().
[EMPTH_LWP] (lwpTerminate, empth_wakeup): Use it rather than
lwpWakeupFd().
[EMPTH_LWP] (lwpWakeupFd): Internal linkage.
[EMPTH_LWP] (lwpSleepUntil): Reset member runtime, so that lwpWakeup()
can test it reliably.  Return how sleep woke up.
[EMPTH_LWP] (empth_sleep): Return value of lwpSleepUntil().
[EMPTH_POSIX] (EMPTH_INTR): New.
[EMPTH_POSIX] (empth_wakeup): Set state to it.
[EMPTH_POSIX] (empth_restorectx): Clear state.
[EMPTH_POSIX] (empth_sleep): Don't re-seleep when state is not clear,
i.e. thread was woken up prematurely.  Return how sleep woke up.
[EMPTH_W32] (empth_sleep): Implement by waiting on hThreadEvent with a
timeout rather than a straight Sleep().  Return how sleep woke up.
2007-02-08 11:26:43 +00:00
..
budg.h (bp_put_items): New. 2007-01-14 09:11:25 +00:00
com.h Update copyright notice. 2007-01-09 19:09:31 +00:00
combat.h Update copyright notice. 2007-01-09 19:09:31 +00:00
commands.h Update copyright notice. 2007-01-09 19:09:31 +00:00
commodity.h Update copyright notice. 2007-01-09 19:09:31 +00:00
damage.h Update copyright notice. 2007-01-09 19:09:31 +00:00
distribute.h Update copyright notice. 2007-01-09 19:09:31 +00:00
econfig-spec.h Update copyright notice. 2007-01-09 19:09:31 +00:00
empio.h Update copyright notice. 2007-01-09 19:09:31 +00:00
empobj.h Update copyright notice. 2007-01-09 19:09:31 +00:00
empthread.h Make empth_wakeup() and empth_terminate() wake up empth_sleep(), and 2007-02-08 11:26:43 +00:00
file.h Update copyright notice. 2007-01-09 19:09:31 +00:00
ioqueue.h Update copyright notice. 2007-01-09 19:09:31 +00:00
item.h Update copyright notice. 2007-01-09 19:09:31 +00:00
journal.h Fix server not to create a journal on SIGHUP when !keep_journal: 2007-01-21 17:34:22 +00:00
land.h (unit_path): New, create by combining shp_path() and lnd_path(). 2007-01-24 23:24:37 +00:00
loan.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
lost.h Update copyright notice. 2007-01-09 19:09:31 +00:00
lwp.h Make empth_wakeup() and empth_terminate() wake up empth_sleep(), and 2007-02-08 11:26:43 +00:00
map.h Update copyright notice. 2007-01-09 19:09:31 +00:00
match.h Update copyright notice. 2007-01-09 19:09:31 +00:00
misc.h (exit_nomem): New. 2007-01-16 19:26:31 +00:00
mission.h Update copyright notice. 2007-01-09 19:09:31 +00:00
nat.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
news.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
nsc.h Update copyright notice. 2007-01-09 19:09:31 +00:00
nuke.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
optlist.h Update copyright notice. 2007-01-09 19:09:31 +00:00
path.h Update copyright notice. 2007-01-09 19:09:31 +00:00
plague.h Update copyright notice. 2007-01-09 19:09:31 +00:00
plane.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
player.h Clean up after removal of wait command: 2007-01-31 06:08:39 +00:00
power.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
product.h Update copyright notice. 2007-01-09 19:09:31 +00:00
proto.h Update copyright notice. 2007-01-09 19:09:31 +00:00
prototypes.h Clean up after removal of wait command: 2007-01-31 06:08:39 +00:00
queue.h Update copyright notice. 2007-01-09 19:09:31 +00:00
retreat.h Update copyright notice. 2007-01-09 19:09:31 +00:00
sect.h Update copyright notice. 2007-01-09 19:09:31 +00:00
server.h Abstract from shutdown initiation mechanism: 2007-01-20 20:40:52 +00:00
service.h Update copyright notice. 2007-01-09 19:09:31 +00:00
ship.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
tel.h Update copyright notice. 2007-01-09 19:09:31 +00:00
trade.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
treaty.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
types.h Update known contributors comment. 2007-01-13 10:16:43 +00:00
unit.h (unit_view): New, create by expanding shp_view() to work for 2007-01-27 02:04:27 +00:00
update.h Update copyright notice. 2007-01-09 19:09:31 +00:00
version.h Update copyright notice. 2007-01-09 19:09:31 +00:00
wantupd.h Update copyright notice. 2007-01-09 19:09:31 +00:00
xy.h Update copyright notice. 2007-01-09 19:09:31 +00:00