mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +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:
@@ -27,6 +27,7 @@
|
||||
#include <unistd.h>
|
||||
#include "byte-order.h"
|
||||
#include "coverage.h"
|
||||
#include "ovs-thread.h"
|
||||
#include "vlog.h"
|
||||
|
||||
VLOG_DEFINE_THIS_MODULE(util);
|
||||
@@ -339,6 +340,9 @@ set_program_name__(const char *argv0, const char *version, const char *date,
|
||||
const char *time)
|
||||
{
|
||||
const char *slash = strrchr(argv0, '/');
|
||||
|
||||
assert_single_threaded();
|
||||
|
||||
program_name = slash ? slash + 1 : argv0;
|
||||
|
||||
free(program_version);
|
||||
|
Reference in New Issue
Block a user