Module Name: src Committed By: pooka Date: Wed Apr 29 14:58:50 UTC 2009
Modified Files: src/sys/rump/librump/rumpuser: rumpuser_pth_dummy.c Log Message: catch locking-against-oneself already when taking the lock To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/rump/librump/rumpuser/rumpuser_pth_dummy.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpuser/rumpuser_pth_dummy.c diff -u src/sys/rump/librump/rumpuser/rumpuser_pth_dummy.c:1.5 src/sys/rump/librump/rumpuser/rumpuser_pth_dummy.c:1.6 --- src/sys/rump/librump/rumpuser/rumpuser_pth_dummy.c:1.5 Wed Mar 18 10:22:45 2009 +++ src/sys/rump/librump/rumpuser/rumpuser_pth_dummy.c Wed Apr 29 14:58:50 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser_pth_dummy.c,v 1.5 2009/03/18 10:22:45 cegger Exp $ */ +/* $NetBSD: rumpuser_pth_dummy.c,v 1.6 2009/04/29 14:58:50 pooka Exp $ */ /* * Copyright (c) 2009 Antti Kantee. All Rights Reserved. @@ -27,7 +27,7 @@ #include <sys/cdefs.h> #if !defined(lint) -__RCSID("$NetBSD: rumpuser_pth_dummy.c,v 1.5 2009/03/18 10:22:45 cegger Exp $"); +__RCSID("$NetBSD: rumpuser_pth_dummy.c,v 1.6 2009/04/29 14:58:50 pooka Exp $"); #endif /* !lint */ #include <sys/time.h> @@ -161,6 +161,7 @@ if (write) { rw->v++; + assert(rw->v == 1); } else { assert(rw->v <= 0); rw->v--;