Skip to content

Conversation

@Ma233
Copy link
Contributor

@Ma233 Ma233 commented Jan 30, 2022

No description provided.

{
let mut started = lock.lock().unwrap();
*started = true;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处也可以使用 drop(started);

Copy link
Owner

@tyrchen tyrchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@tyrchen tyrchen merged commit 3c57ef4 into tyrchen:master Feb 5, 2022
huangchao-ola pushed a commit to huangchao-ola/geektime-rust that referenced this pull request Jul 5, 2025
huangchao-ola pushed a commit to huangchao-ola/geektime-rust that referenced this pull request Jul 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants