]> git.pond.sub.org Git - empserver/commit
Remove the concept of thread priorities from empthread.h. Only LWP
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 24 Jul 2007 05:13:31 +0000 (05:13 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 24 Jul 2007 05:13:31 +0000 (05:13 +0000)
commitd500a7071c1de27e9bc0fea4551faae7370c064d
treeb5d316793cbe8fea35c1a8f0b6018074f63327bc
parent7536a38e9587460583adb3b172aaaa0a66222f3f
Remove the concept of thread priorities from empthread.h.  Only LWP
supports priorities.  Update synchronization used to rely on them,
which naturally worked only with LWP (#1504036).  With that fixed, no
uses of priorities remained, but a minor bug did: players could starve
out threads with priorities below PP_PLAYER, i.e. delete_lostitems()
and player_kill_idle().  Closes #1458175:
(empth_create): Remove parameter prio.  Callers changed.  Also gets
rid of misleading comments in pthread.c and ntthread.c.
(PP_MAIN, PP_UPDATE, PP_SHUTDOWN, PP_SCHED, PP_TIMESTAMP, PP_PLAYER)
(PP_ACCEPT, PP_KILLIDLE): Remove.
(empth_init, empth_create) [EMPTH_LWP]: Pass priority 1.
include/empthread.h
src/lib/empthread/lwp.c
src/lib/empthread/ntthread.c
src/lib/empthread/pthread.c
src/lib/player/accept.c
src/server/main.c
src/server/marketup.c
src/server/shutdown.c
src/server/update.c