From 558103f07186eccea43a24b63cc485ef8778891b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 26 Apr 2013 11:25:00 -0700 Subject: [PATCH] ovsdb-idlc: Ensure that initialization occurs single-threaded. Signed-off-by: Ben Pfaff Acked-by: Andy Zhou --- ovsdb/ovsdb-idlc.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in index 6d49dd68d..ec1c65536 100755 --- a/ovsdb/ovsdb-idlc.in +++ b/ovsdb/ovsdb-idlc.in @@ -187,6 +187,7 @@ def printCIDLSource(schemaFile): #include #include %s #include +#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()): -- 2.43.0