Skip to content

Commit 2421b22

Browse files
committed
Update comment
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent 65a17e6 commit 2421b22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/common/base/src/base/singleton_instance.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ impl GlobalInstance {
129129
/// Should only be used in testing code.
130130
#[cfg(debug_assertions)]
131131
pub fn drop_testing(thread_name: &str) {
132+
// Make sure the write lock is released before alling drop.
132133
let _ = { LOCAL.wait().write().remove(thread_name) };
133134
}
134135

0 commit comments

Comments
 (0)