Source-Changes-HG archive

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

[src/nathanw_sa]: src/lib/libc pt_spin_t has been renamed to pthread_spin_t



details:   https://anonhg.NetBSD.org/src/rev/ac1c20219858
branches:  nathanw_sa
changeset: 505504:ac1c20219858
user:      wdk <wdk%NetBSD.org@localhost>
date:      Tue Jan 01 09:12:56 2002 +0000

description:
pt_spin_t has been renamed to pthread_spin_t

diffstat:

 lib/libc/stdlib/malloc.c            |   4 ++--
 lib/libc/thread-stub/pthread-stub.c |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r 1d0b4dba7cf2 -r ac1c20219858 lib/libc/stdlib/malloc.c
--- a/lib/libc/stdlib/malloc.c  Sun Dec 30 02:37:09 2001 +0000
+++ b/lib/libc/stdlib/malloc.c  Tue Jan 01 09:12:56 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: malloc.c,v 1.36.2.2 2001/10/08 20:21:13 nathanw Exp $  */
+/*     $NetBSD: malloc.c,v 1.36.2.3 2002/01/01 09:12:56 wdk Exp $      */
 
 /*
  * ----------------------------------------------------------------------------
@@ -74,7 +74,7 @@
 
 #include <pthread.h>
 extern int __isthreaded;
-static pt_spin_t thread_lock = __SIMPLELOCK_UNLOCKED;
+static pthread_spin_t thread_lock = __SIMPLELOCK_UNLOCKED;
 #define THREAD_LOCK()  if (__isthreaded) pthread_spinlock(pthread_self(), &thread_lock);
 #define THREAD_UNLOCK()        if (__isthreaded) pthread_spinunlock(pthread_self(), &thread_lock);
 #endif /* __NetBSD__ */
diff -r 1d0b4dba7cf2 -r ac1c20219858 lib/libc/thread-stub/pthread-stub.c
--- a/lib/libc/thread-stub/pthread-stub.c       Sun Dec 30 02:37:09 2001 +0000
+++ b/lib/libc/thread-stub/pthread-stub.c       Tue Jan 01 09:12:56 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread-stub.c,v 1.3.6.4 2001/12/18 22:29:59 nathanw Exp $     */
+/*     $NetBSD: pthread-stub.c,v 1.3.6.5 2002/01/01 09:12:57 wdk Exp $ */
 
 /*-
  * Copyright (c) 1999 Michael Graff <explorer%flame.org@localhost>.
@@ -83,8 +83,8 @@
 int _pthread_cond_init(pthread_cond_t *,const pthread_condattr_t *);
 int _pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *);
 int _pthread_cond_signal(pthread_cond_t *);
-void _pthread_spinlock(pthread_t, pt_spin_t *);
-void _pthread_spinunlock(pthread_t, pt_spin_t *);
+void _pthread_spinlock(pthread_t, pthread_spin_t *);
+void _pthread_spinunlock(pthread_t, pthread_spin_t *);
 int _pthread_key_create(pthread_key_t *, void (*)(void *));
 int _pthread_setspecific(pthread_key_t, const void *);
 void* _pthread_getspecific(pthread_key_t);
@@ -229,7 +229,7 @@
 }
 
 void 
-_pthread_spinlock(pthread_t t, pt_spin_t *l)
+_pthread_spinlock(pthread_t t, pthread_spin_t *l)
 {
        /* LINTED deliberate lack of effect */
        (void)t;
@@ -238,7 +238,7 @@
 }
 
 void
-_pthread_spinunlock(pthread_t t, pt_spin_t *l)
+_pthread_spinunlock(pthread_t t, pthread_spin_t *l)
 {
        /* LINTED deliberate lack of effect */
        (void)t;



Home | Main Index | Thread Index | Old Index