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
tunnel: removed unused function
[sliver-openvswitch.git]
/
lib
/
latch.c
diff --git
a/lib/latch.c
b/lib/latch.c
index
9b13006
..
20a6575
100644
(file)
--- a/
lib/latch.c
+++ b/
lib/latch.c
@@
-75,9
+75,13
@@
latch_is_set(const struct latch *latch)
return pfd.revents & POLLIN;
}
return pfd.revents & POLLIN;
}
-/* Causes the next poll_block() to wake up when 'latch' is set. */
+/* Causes the next poll_block() to wake up when 'latch' is set.
+ *
+ * ('where' is used in debug logging. Commonly one would use latch_wait() to
+ * automatically provide the caller's source file and line number for
+ * 'where'.) */
void
void
-
(latch_wait)
(const struct latch *latch, const char *where)
+
latch_wait_at
(const struct latch *latch, const char *where)
{
{
-
(poll_fd_wait)(latch->fds[0]
, POLLIN, where);
+
poll_fd_wait_at(latch->fds[0], 0
, POLLIN, where);
}
}