Skip to content
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
Next Next commit
Mark unix::locks::futex::Mutex::new as #[inline].
  • Loading branch information
m-ou-se committed Apr 5, 2022
commit 104e95f8481b8edf17e399bddf5b210d40a7775a
1 change: 1 addition & 0 deletions library/std/src/sys/unix/locks/futex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub struct Mutex {
}

impl Mutex {
#[inline]
pub const fn new() -> Self {
Self { futex: AtomicI32::new(0) }
}
Expand Down