git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovs-thread: Add support for various thread-related assertions.
[sliver-openvswitch.git]
/
lib
/
timeval.c
diff --git
a/lib/timeval.c
b/lib/timeval.c
index
5ff59bc
..
4723c56
100644
(file)
--- a/
lib/timeval.c
+++ b/
lib/timeval.c
@@
-30,6
+30,7
@@
#include "fatal-signal.h"
#include "hash.h"
#include "hmap.h"
+#include "ovs-thread.h"
#include "signals.h"
#include "unixctl.h"
#include "util.h"
@@
-297,6
+298,7
@@
time_alarm(unsigned int secs)
long long int now;
long long int msecs;
+ assert_single_threaded();
time_init();
time_refresh();