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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user