#include "util.h"
struct latch {
+#ifndef _WIN32
int fds[2];
+#else
+ HANDLE wevent;
+ bool is_set;
+#endif
};
void latch_init(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 */