Module Name:    src
Committed By:   pooka
Date:           Wed Dec  1 15:01:53 UTC 2010

Modified Files:
        src/lib/librumpuser: rumpuser_pth.c

Log Message:
Umm, delete recursive mutex interface instead of renaming it.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/librumpuser/rumpuser_pth.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librumpuser/rumpuser_pth.c
diff -u src/lib/librumpuser/rumpuser_pth.c:1.4 src/lib/librumpuser/rumpuser_pth.c:1.5
--- src/lib/librumpuser/rumpuser_pth.c:1.4	Wed Dec  1 14:59:37 2010
+++ src/lib/librumpuser/rumpuser_pth.c	Wed Dec  1 15:01:52 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpuser_pth.c,v 1.4 2010/12/01 14:59:37 pooka Exp $	*/
+/*	$NetBSD: rumpuser_pth.c,v 1.5 2010/12/01 15:01:52 pooka Exp $	*/
 
 /*
  * Copyright (c) 2007-2010 Antti Kantee.  All Rights Reserved.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_pth.c,v 1.4 2010/12/01 14:59:37 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_pth.c,v 1.5 2010/12/01 15:01:52 pooka Exp $");
 #endif /* !lint */
 
 #ifdef __linux__
@@ -286,22 +286,6 @@
 	(*mtx)->iskmutex = 1;
 }
 
-void
-rumpuser_mutex_init_krecursive(struct rumpuser_mtx **mtx)
-{
-	pthread_mutexattr_t mattr;
-
-	pthread_mutexattr_init(&mattr);
-	pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_RECURSIVE);
-
-	NOFAIL(*mtx = malloc(sizeof(struct rumpuser_mtx)));
-	NOFAIL_ERRNO(pthread_mutex_init(&((*mtx)->pthmtx), &mattr));
-	(*mtx)->owner = NULL;
-	(*mtx)->iskmutex = 1;
-
-	pthread_mutexattr_destroy(&mattr);
-}
-
 static void
 mtxenter(struct rumpuser_mtx *mtx)
 {

Reply via email to