2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

seq: New module for race-free, pollable, thread-safe sequence number.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
This commit is contained in:
Ben Pfaff
2013-08-06 09:39:10 -07:00
parent 4f9f3f2135
commit 55b403558b
4 changed files with 360 additions and 0 deletions

View File

@@ -26,6 +26,7 @@
#include "fatal-signal.h"
#include "list.h"
#include "ovs-thread.h"
#include "seq.h"
#include "socket-util.h"
#include "timeval.h"
#include "vlog.h"
@@ -248,6 +249,8 @@ poll_block(void)
/* Handle any pending signals before doing anything else. */
fatal_signal_run();
seq_woke();
}
static void