Skip to content

Commit 4e8de81

Browse files
committed
sys/isrpipe: document worst-case wait time
1 parent 6434851 commit 4e8de81

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sys/include/isrpipe/read_timeout.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ int isrpipe_read_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_
5252
* timeout or when @p count bytes have been received.
5353
*
5454
* A timeout only occurs if no data is received within @p timeout microseconds.
55-
* Each time a byte or burst of bytes is received, the timeout is reset.
55+
* Each time a byte or burst of bytes is received, the timeout is reset. This
56+
* means the worst-case total wait is @p count × @p timeout microseconds.
5657
*
5758
* @note If a timeout occurs, some bytes may have been read out of the pipe and
5859
* placed into @p buf.

0 commit comments

Comments
 (0)