mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 00:43:24 +00:00
Add get_mut
methods for locks
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
87e953eac3
commit
53b873f647
@ -696,7 +696,7 @@ impl Socket for StreamSocket {
|
||||
|
||||
impl Drop for StreamSocket {
|
||||
fn drop(&mut self) {
|
||||
let state = self.state.write().take();
|
||||
let state = self.state.get_mut().take();
|
||||
|
||||
let iface_to_poll = match state {
|
||||
State::Init(_) => None,
|
||||
|
Reference in New Issue
Block a user