Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Add a SIMPLELOCK_INITIALIZER macro, to statically in...



details:   https://anonhg.NetBSD.org/src/rev/ccf896667514
branches:  trunk
changeset: 471654:ccf896667514
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Apr 06 23:08:48 1999 +0000

description:
Add a SIMPLELOCK_INITIALIZER macro, to statically initialize a simplelock,
so that simple_lock_init() is not necessary.

diffstat:

 sys/sys/lock.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 1190c0a8c610 -r ccf896667514 sys/sys/lock.h
--- a/sys/sys/lock.h    Tue Apr 06 23:03:44 1999 +0000
+++ b/sys/sys/lock.h    Tue Apr 06 23:08:48 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.17 1999/03/25 00:20:35 sommerfe Exp $       */
+/*     $NetBSD: lock.h,v 1.18 1999/04/06 23:08:48 thorpej Exp $        */
 
 /* 
  * Copyright (c) 1995
@@ -65,6 +65,12 @@
 #endif
 };
 
+#ifdef LOCKDEBUG
+#define        SIMPLELOCK_INITIALIZER  { 0, NULL, 0, NULL, 0, { NULL, NULL }, 0 }
+#else
+#define        SIMPLELOCK_INITIALIZER  { 0 }
+#endif
+
 /* XXXCDC: kill typedefs later? */
 typedef struct simplelock       simple_lock_data_t;
 typedef struct simplelock       *simple_lock_t;



Home | Main Index | Thread Index | Old Index