X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Flatch.c;h=bf518b9ca6a699557275cbca2b052af389a69861;hb=d017eeb9f9ebcb46c24a67fd301b3e36cd26a04e;hp=9b130062b5e73b051ff631c0c68630de7f1d0312;hpb=aad84c8ef17b0b5237904dd297487db9aae1f539;p=sliver-openvswitch.git diff --git a/lib/latch.c b/lib/latch.c index 9b130062b..bf518b9ca 100644 --- a/lib/latch.c +++ b/lib/latch.c @@ -75,9 +75,13 @@ latch_is_set(const struct latch *latch) 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 -(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], POLLIN, where); }