提交 819645bf 编写于 作者: R Ralf Jung

I think we have to strengthen Mutex::init UB

上级 d3d31105
......@@ -32,7 +32,7 @@ pub const fn new() -> Mutex { Mutex(imp::Mutex::new()) }
/// Prepare the mutex for use.
///
/// This should be called once the mutex is at a stable memory address.
/// It must not be called concurrently with any other operation.
/// Behavior is undefined unless this is called before any other operation.
#[inline]
pub unsafe fn init(&mut self) { self.0.init() }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册