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
SpinLock
RawSpinLock
RawSpinLock 대신 SpinLock을 쓰도록 합니다. 이러면 좋은 이유는:
LockGuard
이 문제를 해결하는 방법의 순서를 생각해봅시다.
sl_lock
XXXState
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
RawSpinLock
대신SpinLock
을 쓰도록 합니다. 이러면 좋은 이유는:LockGuard
를 이용해 락을 풀지 않고 리턴하는 경우를 막을 수 있습니다.이 문제를 해결하는 방법의 순서를 생각해봅시다.
sl_lock
을 통해서RawSpinLock
을 사용하는 곳이 있는 지 확인합니다. 이런 락은 안타깝게도바꿀 수가 없습니다C 코드를 먼저 수정해야 합니다.XXXState
따위로 만들고 이것에 대한SpinLock
을 사용합니다.sl_lock
을 호출하던 Rust 코드를 리팩토링합니다.The text was updated successfully, but these errors were encountered: