Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread Lint warning police -- don't use `//' for com...
details: https://anonhg.NetBSD.org/src/rev/4656cd759db1
branches: trunk
changeset: 579558:4656cd759db1
user: jwise <jwise%NetBSD.org@localhost>
date: Thu Mar 17 17:23:21 2005 +0000
description:
Lint warning police -- don't use `//' for comments in C code.
diffstat:
lib/libpthread/pthread_lock.c | 6 +++---
lib/libpthread/pthread_sa.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 844359a1b69f -r 4656cd759db1 lib/libpthread/pthread_lock.c
--- a/lib/libpthread/pthread_lock.c Thu Mar 17 16:45:50 2005 +0000
+++ b/lib/libpthread/pthread_lock.c Thu Mar 17 17:23:21 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_lock.c,v 1.13 2005/01/06 17:38:29 mycroft Exp $ */
+/* $NetBSD: pthread_lock.c,v 1.14 2005/03/17 17:23:21 jwise Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_lock.c,v 1.13 2005/01/06 17:38:29 mycroft Exp $");
+__RCSID("$NetBSD: pthread_lock.c,v 1.14 2005/03/17 17:23:21 jwise Exp $");
#include <sys/types.h>
#include <sys/lock.h>
@@ -257,7 +257,7 @@
if ((thread->pt_spinlocks == 0) && (thread->pt_next != NULL)) {
PTHREADD_ADD(PTHREADD_SPINPREEMPT);
-// pthread__assert(thread->pt_blockgen == thread->pt_unblockgen);
+ /* pthread__assert(thread->pt_blockgen == thread->pt_unblockgen); */
pthread__switch(thread, thread->pt_next);
}
}
diff -r 844359a1b69f -r 4656cd759db1 lib/libpthread/pthread_sa.c
--- a/lib/libpthread/pthread_sa.c Thu Mar 17 16:45:50 2005 +0000
+++ b/lib/libpthread/pthread_sa.c Thu Mar 17 17:23:21 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_sa.c,v 1.36 2005/01/06 17:42:31 mycroft Exp $ */
+/* $NetBSD: pthread_sa.c,v 1.37 2005/03/17 17:23:21 jwise Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_sa.c,v 1.36 2005/01/06 17:42:31 mycroft Exp $");
+__RCSID("$NetBSD: pthread_sa.c,v 1.37 2005/03/17 17:23:21 jwise Exp $");
#include <err.h>
#include <errno.h>
@@ -134,7 +134,7 @@
pthread__assert(t->pt_vpid == sas[1]->sa_cpu);
t->pt_blockedlwp = sas[1]->sa_id;
t->pt_blockgen += 2;
-// pthread__assert(t->pt_blockgen <= t->pt_unblockgen + 2);
+ /* pthread__assert(t->pt_blockgen <= t->pt_unblockgen + 2); */
if (t->pt_cancel)
_lwp_wakeup(t->pt_blockedlwp);
#ifdef PTHREAD__DEBUG
Home |
Main Index |
Thread Index |
Old Index