We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SpinLockGuard::into_raw
현재의 구현은 다음과 같습니다:
impl<'s, T> SpinLockGuard<'s, T> { pub fn into_raw(self) -> usize { self.lock as *const _ as usize }
unsafe
SpinLockGuard
mem::forget(self)
The text was updated successfully, but these errors were encountered:
그래서 이것은 다음 VCpu 관련 PR에서 수정하도록 하겠습니다.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
현재의 구현은 다음과 같습니다:
unsafe
해야 합니다. 만약에 reference를 인자로 받았으면 달라지는데, 지금은SpinLockGuard
를 소모하면서 락을 안 풀기 때문입니다.mem::forget(self)
로 명시적으로 destructor를 호출하지 않도록 고쳐야 합니다.The text was updated successfully, but these errors were encountered: