Module Name: src Committed By: pooka Date: Tue May 18 14:58:42 UTC 2010
Modified Files: src/lib/librumpuser: rumpuser_int.h rumpuser_pth.c src/sys/rump/include/rump: rumpuser.h src/sys/rump/librump/rumpkern: intr.c locks.c rump_private.h scheduler.c Log Message: Make it possible to use the scheduler lock as the rumpuser condvar interlock. This is applicable in cases where the actual interlock is the CPU the currently running thread is scheduled on. Borrowing the scheduler lock as the mutex mandated by pthread_cond_wait() does away with need to have an additional mutex. This both optimizes runtime execution and simplifies code, as the extra lock typically lead to quite some trickeries to avoid the dungeon collapsing due to zaps from the wand of deadlock. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/librumpuser/rumpuser_int.h cvs rdiff -u -r1.1 -r1.2 src/lib/librumpuser/rumpuser_pth.c cvs rdiff -u -r1.40 -r1.41 src/sys/rump/include/rump/rumpuser.h cvs rdiff -u -r1.27 -r1.28 src/sys/rump/librump/rumpkern/intr.c cvs rdiff -u -r1.39 -r1.40 src/sys/rump/librump/rumpkern/locks.c cvs rdiff -u -r1.44 -r1.45 src/sys/rump/librump/rumpkern/rump_private.h cvs rdiff -u -r1.13 -r1.14 src/sys/rump/librump/rumpkern/scheduler.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.