Skip to content

Commit 5d99c9a

Browse files
authored
Merge pull request #19 from fusion-engineering-forks/inline
Add `#[inline(always)]` to CriticalSection::new().
2 parents 090b1bf + c54d5bd commit 5d99c9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ impl CriticalSection {
4848
///
4949
/// This method is meant to be used to create safe abstractions rather than
5050
/// meant to be directly used in applications.
51+
#[inline(always)]
5152
pub unsafe fn new() -> Self {
5253
CriticalSection { _0: () }
5354
}

0 commit comments

Comments
 (0)