summaryrefslogtreecommitdiff
path: root/ot_fdstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_fdstate.h')
-rw-r--r--ot_fdstate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ot_fdstate.h b/ot_fdstate.h
index 2693a3b..88f685d 100644
--- a/ot_fdstate.h
+++ b/ot_fdstate.h
@@ -45,6 +45,11 @@ int fdstate_claim_expired(int fd, ot_time now);
45 quoting the old generation are still in flight. */ 45 quoting the old generation are still in flight. */
46void fdstate_close(int fd); 46void fdstate_close(int fd);
47 47
48/* Walks the table for descriptors that have expired, handing back one at a
49 time until it returns -1. The cursor belongs to the caller, so several
50 sweepers can run without sharing anything. */
51int fdstate_next_expired(ot_time now, int *cursor);
52
48/* Both only valid while the caller holds the descriptor. */ 53/* Both only valid while the caller holds the descriptor. */
49void *fdstate_cookie(int fd); 54void *fdstate_cookie(int fd);
50void fdstate_set_expiry(int fd, ot_time expiry); 55void fdstate_set_expiry(int fd, ot_time expiry);