hash: New helper functions hash_bytes32() and hash_bytes64().
[cascardo/ovs.git] / lib / latch.h
index 0b6e8a3..3c0b842 100644 (file)
 #include "util.h"
 
 struct latch {
+#ifndef _WIN32
     int fds[2];
+#else
+    HANDLE wevent;
+    bool is_set;
+#endif
 };
 
 void latch_init(struct latch *);
@@ -37,6 +42,6 @@ void latch_set(struct latch *);
 
 bool latch_is_set(const struct latch *);
 void latch_wait_at(const struct latch *, const char *where);
-#define latch_wait(latch) latch_wait_at(latch, SOURCE_LOCATOR)
+#define latch_wait(latch) latch_wait_at(latch, OVS_SOURCE_LOCATOR)
 
 #endif /* latch.h */