aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/main.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-03-16 16:15:38 +0100
committerDave Barach <openvpp@barachs.net>2017-03-31 12:21:47 +0000
commitce359db3b68528ce576862129b2a7709681ad2c6 (patch)
tree25e4ba205d019cb75a3b6a3353cc7410211074e2 /src/vlib/main.h
parent386be87d887a0335f4d9712a02960f0ddefe8971 (diff)
vlib: extend foreach_vlib_main macro to assert if workers are not parked
Change-Id: I6ff7b65a400734a47bc0a7d03faf86ef1cf4f8c8 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/main.h')
-rw-r--r--src/vlib/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vlib/main.h b/src/vlib/main.h
index 98bc823d874..0197b4f30cc 100644
--- a/src/vlib/main.h
+++ b/src/vlib/main.h
@@ -174,6 +174,9 @@ typedef struct vlib_main_t
volatile u32 api_queue_nonempty;
void (*queue_signal_callback) (struct vlib_main_t *);
u8 **argv;
+
+ /* debugging */
+ volatile int parked_at_barrier;
} vlib_main_t;
/* Global main structure. */