@@ -628,17 +628,17 @@ impl File {
628
628
///
629
629
/// This acquires an exclusive lock; no other file handle to this file may acquire another lock.
630
630
///
631
+ /// This lock may be advisory or mandatory. This lock is meant to interact with [`lock`],
632
+ /// [`try_lock`], [`lock_shared`], [`try_lock_shared`], and [`unlock`]. Its interactions with
633
+ /// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
634
+ /// cause non-lockholders to block.
635
+ ///
631
636
/// If this file handle/descriptor, or a clone of it, already holds an lock the exact behavior
632
637
/// is unspecified and platform dependent, including the possibility that it will deadlock.
633
638
/// However, if this method returns, then an exclusive lock is held.
634
639
///
635
640
/// If the file not open for writing, it is unspecified whether this function returns an error.
636
641
///
637
- /// This lock may be advisory or mandatory. This lock is meant to interact with [`lock`],
638
- /// [`try_lock`], [`lock_shared`], [`try_lock_shared`], and [`unlock`]. Its interactions with
639
- /// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
640
- /// cause non-lockholders to block.
641
- ///
642
642
/// The lock will be released when this file (along with any other file descriptors/handles
643
643
/// duplicated or inherited from it) is closed, or if the [`unlock`] method is called.
644
644
///
@@ -683,15 +683,15 @@ impl File {
683
683
/// This acquires a shared lock; more than one file handle may hold a shared lock, but none may
684
684
/// hold an exclusive lock at the same time.
685
685
///
686
- /// If this file handle/descriptor, or a clone of it, already holds an lock, the exact behavior
687
- /// is unspecified and platform dependent, including the possibility that it will deadlock.
688
- /// However, if this method returns, then a shared lock is held.
689
- ///
690
686
/// This lock may be advisory or mandatory. This lock is meant to interact with [`lock`],
691
687
/// [`try_lock`], [`lock_shared`], [`try_lock_shared`], and [`unlock`]. Its interactions with
692
688
/// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
693
689
/// cause non-lockholders to block.
694
690
///
691
+ /// If this file handle/descriptor, or a clone of it, already holds an lock, the exact behavior
692
+ /// is unspecified and platform dependent, including the possibility that it will deadlock.
693
+ /// However, if this method returns, then a shared lock is held.
694
+ ///
695
695
/// The lock will be released when this file (along with any other file descriptors/handles
696
696
/// duplicated or inherited from it) is closed, or if the [`unlock`] method is called.
697
697
///
@@ -738,17 +738,17 @@ impl File {
738
738
///
739
739
/// This acquires an exclusive lock; no other file handle to this file may acquire another lock.
740
740
///
741
+ /// This lock may be advisory or mandatory. This lock is meant to interact with [`lock`],
742
+ /// [`try_lock`], [`lock_shared`], [`try_lock_shared`], and [`unlock`]. Its interactions with
743
+ /// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
744
+ /// cause non-lockholders to block.
745
+ ///
741
746
/// If this file handle/descriptor, or a clone of it, already holds an lock, the exact behavior
742
747
/// is unspecified and platform dependent, including the possibility that it will deadlock.
743
748
/// However, if this method returns `Ok(true)`, then it has acquired an exclusive lock.
744
749
///
745
750
/// If the file not open for writing, it is unspecified whether this function returns an error.
746
751
///
747
- /// This lock may be advisory or mandatory. This lock is meant to interact with [`lock`],
748
- /// [`try_lock`], [`lock_shared`], [`try_lock_shared`], and [`unlock`]. Its interactions with
749
- /// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
750
- /// cause non-lockholders to block.
751
- ///
752
752
/// The lock will be released when this file (along with any other file descriptors/handles
753
753
/// duplicated or inherited from it) is closed, or if the [`unlock`] method is called.
754
754
///
@@ -797,15 +797,15 @@ impl File {
797
797
/// This acquires a shared lock; more than one file handle may hold a shared lock, but none may
798
798
/// hold an exclusive lock at the same time.
799
799
///
800
- /// If this file handle, or a clone of it, already holds an lock, the exact behavior is
801
- /// unspecified and platform dependent, including the possibility that it will deadlock.
802
- /// However, if this method returns `Ok(true)`, then it has acquired a shared lock.
803
- ///
804
800
/// This lock may be advisory or mandatory. This lock is meant to interact with [`lock`],
805
801
/// [`try_lock`], [`lock_shared`], [`try_lock_shared`], and [`unlock`]. Its interactions with
806
802
/// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
807
803
/// cause non-lockholders to block.
808
804
///
805
+ /// If this file handle, or a clone of it, already holds an lock, the exact behavior is
806
+ /// unspecified and platform dependent, including the possibility that it will deadlock.
807
+ /// However, if this method returns `Ok(true)`, then it has acquired a shared lock.
808
+ ///
809
809
/// The lock will be released when this file (along with any other file descriptors/handles
810
810
/// duplicated or inherited from it) is closed, or if the [`unlock`] method is called.
811
811
///
0 commit comments