git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a944ef4
)
ovsdb-idlc: Ensure that initialization occurs single-threaded.
author
Ben Pfaff
<blp@nicira.com>
Fri, 26 Apr 2013 18:25:00 +0000
(11:25 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 23 Jul 2013 18:38:05 +0000
(11:38 -0700)
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
ovsdb/ovsdb-idlc.in
patch
|
blob
|
history
diff --git
a/ovsdb/ovsdb-idlc.in
b/ovsdb/ovsdb-idlc.in
index
6d49dd6
..
ec1c655
100755
(executable)
--- a/
ovsdb/ovsdb-idlc.in
+++ b/
ovsdb/ovsdb-idlc.in
@@
-187,6
+187,7
@@
def printCIDLSource(schemaFile):
#include <config.h>
#include %s
#include <limits.h>
+#include "ovs-thread.h"
#include "ovsdb-data.h"
#include "ovsdb-error.h"
#include "util.h"
@@
-643,6
+644,7
@@
void
if (inited) {
return;
}
+ assert_single_threaded();
inited = true;
""" % prefix
for tableName, table in sorted(schema.tables.iteritems()):