Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser PTHREAD_PROCESS_SHARED private doesn't seem ...



details:   https://anonhg.NetBSD.org/src/rev/7e9e89113279
branches:  trunk
changeset: 782921:7e9e89113279
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Nov 26 17:54:51 2012 +0000

description:
PTHREAD_PROCESS_SHARED private doesn't seem to work on DragonFly, so
init the spin lock _PRIVATE (we don't really care which it is).

diffstat:

 lib/librumpuser/rumpuser_pth.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4553ec37cd79 -r 7e9e89113279 lib/librumpuser/rumpuser_pth.c
--- a/lib/librumpuser/rumpuser_pth.c    Mon Nov 26 17:36:35 2012 +0000
+++ b/lib/librumpuser/rumpuser_pth.c    Mon Nov 26 17:54:51 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser_pth.c,v 1.9 2012/10/08 18:02:04 pooka Exp $   */
+/*     $NetBSD: rumpuser_pth.c,v 1.10 2012/11/26 17:54:51 pooka Exp $  */
 
 /*
  * Copyright (c) 2007-2010 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_pth.c,v 1.9 2012/10/08 18:02:04 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_pth.c,v 1.10 2012/11/26 17:54:51 pooka Exp $");
 #endif /* !lint */
 
 #include <assert.h>
@@ -386,7 +386,7 @@
 
        NOFAIL(*rw = malloc(sizeof(struct rumpuser_rw)));
        NOFAIL_ERRNO(pthread_rwlock_init(&((*rw)->pthrw), NULL));
-       NOFAIL_ERRNO(pthread_spin_init(&((*rw)->spin), PTHREAD_PROCESS_SHARED));
+       NOFAIL_ERRNO(pthread_spin_init(&((*rw)->spin),PTHREAD_PROCESS_PRIVATE));
        (*rw)->readers = 0;
        (*rw)->writer = NULL;
 }



Home | Main Index | Thread Index | Old Index