We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e92a0 commit b17d716Copy full SHA for b17d716
crates/epaint/src/mutex.rs
@@ -27,6 +27,7 @@ mod mutex_impl {
27
}
28
29
#[inline(always)]
30
+ #[cfg_attr(debug_assertions, track_caller)]
31
pub fn lock(&self) -> MutexGuard<'_, T> {
32
if cfg!(debug_assertions) {
33
self.0
@@ -157,6 +158,7 @@ mod rw_lock_impl {
157
158
159
impl<T: ?Sized> RwLock<T> {
160
161
162
pub fn read(&self) -> RwLockReadGuard<'_, T> {
163
let guard = if cfg!(debug_assertions) {
164
@@ -169,6 +171,7 @@ mod rw_lock_impl {
169
171
170
172
173
174
175
pub fn write(&self) -> RwLockWriteGuard<'_, T> {
176
177
0 commit comments