8000 revise Hermit's mutex interface to support the behaviour of StaticMutex by stlankes · Pull Request #77610 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

revise Hermit's mutex interface to support the behaviour of StaticMutex #77610

New issue

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

Merged
merged 13 commits into from
Oct 25, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
box mutex to get a movable mutex
the commit avoid an alignement issue in Mutex implementation
  • Loading branch information
stlankes committed Oct 13, 2020
commit bf268fe928eae8d85a868ccdbcc086ea033ae51c
2 changes: 1 addition & 1 deletion library/std/src/sys/hermit/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub struct Mutex {
inner: Spinlock<MutexInner>,
}

pub type MovableMutex = Mutex;
pub type MovableMutex = Box<Mutex>;

unsafe impl Send for Mutex {}
unsafe impl Sync for Mutex {}
Expand Down
0