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
Prepare for post-2.2.0 (2.2.90).
[sliver-openvswitch.git]
/
lib
/
latch.h
diff --git
a/lib/latch.h
b/lib/latch.h
index
08f45b1
..
52829b1
100644
(file)
--- a/
lib/latch.h
+++ b/
lib/latch.h
@@
-26,7
+26,12
@@
#include "util.h"
struct latch {
#include "util.h"
struct latch {
+#ifndef _WIN32
int fds[2];
int fds[2];
+#else
+ HANDLE wevent;
+ bool is_set;
+#endif
};
void latch_init(struct latch *);
};
void latch_init(struct latch *);
@@
-36,7
+41,7
@@
bool latch_poll(struct latch *);
void latch_set(struct latch *);
bool latch_is_set(const struct latch *);
void latch_set(struct latch *);
bool latch_is_set(const struct latch *);
-void latch_wait(const struct latch *, const char *where);
-#define latch_wait(latch) latch_wait(latch, SOURCE_LOCATOR)
+void latch_wait
_at
(const struct latch *, const char *where);
+#define latch_wait(latch) latch_wait
_at
(latch, SOURCE_LOCATOR)
#endif /* latch.h */
#endif /* latch.h */