]> git.pond.sub.org Git - empserver/commit
Make empth_rwlock_t prefer writers
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 26 Apr 2009 21:48:05 +0000 (23:48 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 19 Jul 2009 18:11:52 +0000 (14:11 -0400)
commitd052239a7a5600b4cb3a468438c4f3d47c6aac34
tree30687b28862ab4e5661b2bb37eabb5db6b60d46d
parent079fb286c5d9bd1334cf74eb31f3467ccdd4fba7
Make empth_rwlock_t prefer writers

LWP and Windows implementations already did that.  Rewrite the
pthreads implementation.

The write-bias makes the stupid play_wrlock_wanted busy wait in
dispatch() unnecessary.  Remove it.
include/empthread.h
src/lib/empthread/pthread.c
src/lib/player/dispatch.c