lentferj's projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
12d4429
)
kernel - Add LWKT_SERIALIZE_INITIALIZER
author
Matthew Dillon <dillon@apollo.backplane.com>
Tue, 7 Sep 2010 15:58:38 +0000 (08:58 -0700)
committer
Matthew Dillon <dillon@apollo.backplane.com>
Tue, 7 Sep 2010 15:58:38 +0000 (08:58 -0700)
* Add an initializer for serializer static/global declarations.
sys/sys/serialize.h
patch
|
blob
|
blame
|
history
diff --git
a/sys/sys/serialize.h
b/sys/sys/serialize.h
index
4719bbb
..
e338310
100644
(file)
--- a/
sys/sys/serialize.h
+++ b/
sys/sys/serialize.h
@@
-25,6
+25,8
@@
struct lwkt_serialize {
struct thread *last_td;
};
+#define LWKT_SERIALIZE_INITIALIZER { 0, NULL }
+
#ifdef INVARIANTS
/*
* Note that last_td is only maintained when INVARIANTS is turned on,