Commit bed23e4a authored by william's avatar william

fix some comments

parent 9f7599c4
...@@ -431,8 +431,8 @@ static timeout_t tms__timeout(struct timeouts *T) { ...@@ -431,8 +431,8 @@ static timeout_t tms__timeout(struct timeouts *T) {
/* /*
* Provide a minimum timeout for our caller. If anything is pending on * Calculate a timeout that our caller can wait before updating and
* the expiration queue return 0, beca * processing the wheel.
*/ */
timeout_t timeouts_timeout(struct timeouts *T) { timeout_t timeouts_timeout(struct timeouts *T) {
if (!CIRCLEQ_EMPTY(&T->expired)) if (!CIRCLEQ_EMPTY(&T->expired))
...@@ -458,7 +458,8 @@ struct timeout *timeouts_get(struct timeouts *T) { ...@@ -458,7 +458,8 @@ struct timeout *timeouts_get(struct timeouts *T) {
/* /*
* Use dumb looping to locate the earliest timeout pending on the wheel. * Use dumb looping to locate the earliest timeout pending on the wheel so
* our invariant assertions can check the result of our optimized code.
*/ */
static struct timeout *tms__min(struct timeouts *T) { static struct timeout *tms__min(struct timeouts *T) {
struct timeout *to, *min = NULL; struct timeout *to, *min = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment