Skip to content

Commit 03020d4

Browse files
committed
Add comment for unix::Client::Fifo::is_non_blocking
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 0085bc6 commit 03020d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ pub enum Client {
2424
Fifo {
2525
file: File,
2626
path: PathBuf,
27+
/// it can only go from false -> true but not the other way around, since that
28+
/// could cause a race condition.
2729
is_non_blocking: AtomicBool,
2830
},
2931
}

0 commit comments

Comments
 (0)