Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser Umm, delete recursive mutex interface instea...



details:   https://anonhg.NetBSD.org/src/rev/07a8fc600214
branches:  trunk
changeset: 759197:07a8fc600214
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Dec 01 15:01:52 2010 +0000

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

diffstat:

 lib/librumpuser/rumpuser_pth.c |  20 ++------------------
 1 files changed, 2 insertions(+), 18 deletions(-)

diffs (41 lines):

diff -r 777810901c3d -r 07a8fc600214 lib/librumpuser/rumpuser_pth.c
--- a/lib/librumpuser/rumpuser_pth.c    Wed Dec 01 14:59:37 2010 +0000
+++ b/lib/librumpuser/rumpuser_pth.c    Wed Dec 01 15:01:52 2010 +0000
@@ -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)
 {



Home | Main Index | Thread Index | Old Index