From ac053c02f3254cb539d9e9db7129bd5eaf40289a Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 24 Aug 2020 12:12:10 -0700 Subject: [PATCH] Correct a stale comment --- src/topic_monitor.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/topic_monitor.h b/src/topic_monitor.h index 42d2dbe71..2f1be0900 100644 --- a/src/topic_monitor.h +++ b/src/topic_monitor.h @@ -217,10 +217,9 @@ class topic_monitor_t { /// If \p gens is older, then just return those by reference, and directly return false (not /// becoming the reader). /// If \p gens is current and there is not a reader, then do not update \p gens and return true, - /// indicating we should become the reader. Now it is our responsibility to read from the pipes - /// and notify on a change via the condition variable. - /// If \p gens is current, and there is already a reader, then wait until the reader notifies us - /// and try again. + /// indicating we should become the reader. Now it is our responsibility to wait on the + /// semaphore and notify on a change via the condition variable. If \p gens is current, and + /// there is already a reader, then wait until the reader notifies us and try again. bool try_update_gens_maybe_becoming_reader(generation_list_t *gens); /// Wait for some entry in the list of generations to change.