2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-21 14:49:41 +00:00

ovs-thread: Add support for various thread-related assertions.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
Ben Pfaff
2013-06-19 13:07:35 -07:00
parent 1514b27555
commit 728a8b141f
8 changed files with 100 additions and 8 deletions

View File

@@ -28,6 +28,7 @@
#include "dynamic-string.h"
#include "fatal-signal.h"
#include "list.h"
#include "ovs-thread.h"
#include "poll-loop.h"
#include "signals.h"
#include "socket-util.h"
@@ -71,6 +72,7 @@ process_init(void)
static bool inited;
struct sigaction sa;
assert_single_threaded();
if (inited) {
return;
}
@@ -180,6 +182,8 @@ process_start(char **argv, struct process **pp)
pid_t pid;
int error;
assert_single_threaded();
*pp = NULL;
COVERAGE_INC(process_start);
error = process_prestart(argv);