File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ const UINT_TRUE: uint = -1;
94
94
#[ stable]
95
95
impl AtomicBool {
96
96
/// Create a new `AtomicBool`
97
+ #[ inline]
97
98
pub fn new ( v : bool ) -> AtomicBool {
98
99
let val = if v { UINT_TRUE } else { 0 } ;
99
100
AtomicBool { v : UnsafeCell :: new ( val) , nocopy : marker:: NoCopy }
@@ -305,6 +306,7 @@ impl AtomicBool {
305
306
#[ stable]
306
307
impl AtomicInt {
307
308
/// Create a new `AtomicInt`
309
+ #[ inline]
308
310
pub fn new ( v : int ) -> AtomicInt {
309
311
AtomicInt { v : UnsafeCell :: new ( v) , nocopy : marker:: NoCopy }
310
312
}
@@ -426,6 +428,7 @@ impl AtomicInt {
426
428
#[ stable]
427
429
impl AtomicUint {
428
430
/// Create a new `AtomicUint`
431
+ #[ inline]
429
432
pub fn new ( v : uint ) -> AtomicUint {
430
433
AtomicUint { v : UnsafeCell :: new ( v) , nocopy : marker:: NoCopy }
431
434
}
@@ -547,6 +550,7 @@ impl AtomicUint {
547
550
#[ stable]
548
551
impl < T > AtomicPtr < T > {
549
552
/// Create a new `AtomicPtr`
553
+ #[ inline]
550
554
pub fn new ( p : * mut T ) -> AtomicPtr < T > {
551
555
AtomicPtr { p : UnsafeCell :: new ( p as uint ) , nocopy : marker:: NoCopy }
552
556
}
You can’t perform that action at this time.
0 commit comments