Skip to content

Commit a5be333

Browse files
committed
add comment
Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
1 parent 404c0e7 commit a5be333

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vllm/utils/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3546,6 +3546,10 @@ def unique_filepath(fn: Callable[[int], Path]) -> Path:
35463546
35473547
fn should be a callable that returns a path that
35483548
includes the passed int at a fixed location.
3549+
3550+
Note: This function has a TOCTOU race condition.
3551+
Caller should use atomic operations (e.g., open with 'x' mode)
3552+
when creating the file to ensure thread safety.
35493553
"""
35503554
i = 0
35513555
while True:

0 commit comments

Comments
 (0)