File tree 1 file changed +5
-11
lines changed
1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,9 @@ impl WaitTimeoutResult {
78
78
/// and a mutex. The predicate is always verified inside of the mutex before
79
79
/// determining that a thread must block.
80
80
///
81
- /// Functions in this module will block the current **thread** of execution and
82
- /// are bindings to system-provided condition variables where possible. Note
83
- /// that this module places one additional restriction over the system condition
84
- /// variables: each condvar can be used with precisely one mutex at runtime. Any
85
- /// attempt to use multiple mutexes on the same condition variable will result
86
- /// in a runtime panic. If this is not desired, then the unsafe primitives in
87
- /// `sys` do not have this restriction but may result in undefined behavior.
81
+ /// Functions in this module will block the current **thread** of execution.
82
+ /// Note that any attempt to use multiple mutexes on the same condition
83
+ /// variable may result in a runtime panic.
88
84
///
89
85
/// # Examples
90
86
///
@@ -159,10 +155,8 @@ impl Condvar {
159
155
///
160
156
/// # Panics
161
157
///
162
- /// This function will [`panic!`] if it is used with more than one mutex
163
- /// over time. Each condition variable is dynamically bound to exactly one
164
- /// mutex to ensure defined behavior across platforms. If this functionality
165
- /// is not desired, then unsafe primitives in `sys` are provided.
158
+ /// This function may [`panic!`] if it is used with more than one mutex
159
+ /// over time.
166
160
///
167
161
/// [`notify_one`]: Self::notify_one
168
162
/// [`notify_all`]: Self::notify_all
You can’t perform that action at this time.
0 commit comments