From 0cf3acee20f9b3f5c5961e754ab33c59b8dd4bb9 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sat, 25 Nov 2023 15:17:33 +0900 Subject: add -I interval option -I INTERVAL option inserts sleep for interval (seconds) between SSH connection attempts (issue #7). --- src/path.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/path.h') diff --git a/src/path.h b/src/path.h index 5fc08a0..dbaa585 100644 --- a/src/path.h +++ b/src/path.h @@ -62,6 +62,9 @@ bool chunk_pool_is_filled(struct chunk_pool *cp); /* return number of chunks in the pool */ size_t chunk_pool_size(struct chunk_pool *cp); +/* return true if chunk pool is empty (all chunks are already poped) */ +bool chunk_pool_is_empty(struct chunk_pool *cp); + /* free chunks in the chunk_pool */ void chunk_pool_release(struct chunk_pool *cp); -- cgit v1.2.3