@@ -40,9 +40,6 @@ pub mod spsc {
40
40
#[ cfg( has_atomics) ]
41
41
unsafe fn load_acquire ( x : * const Self ) -> Self {
42
42
( * ( x as * const AtomicU8 ) ) . load ( Ordering :: Acquire )
43
- // let y = (*(x as *const AtomicU8)).load(Ordering::Relaxed); // read
44
- // atomic::compiler_fence(Ordering::Acquire); // ▼
45
- // y
46
43
}
47
44
48
45
#[ cfg( has_atomics) ]
@@ -53,8 +50,6 @@ pub mod spsc {
53
50
#[ cfg( has_atomics) ]
54
51
unsafe fn store_release ( x : * const Self , val : Self ) {
55
52
( * ( x as * const AtomicU8 ) ) . store ( val, Ordering :: Release )
56
- // atomic::compiler_fence(Ordering::Release); // ▲
57
- // (*(x as *const AtomicU8)).store(val, Ordering::Relaxed) // write
58
53
}
59
54
}
60
55
@@ -75,9 +70,6 @@ pub mod spsc {
75
70
#[ cfg( has_atomics) ]
76
71
unsafe fn load_acquire ( x : * const Self ) -> Self {
77
72
( * ( x as * const AtomicU16 ) ) . load ( Ordering :: Acquire )
78
- // let y = (*(x as *const AtomicU16)).load(Ordering::Relaxed); // read
79
- // atomic::compiler_fence(Ordering::Acquire); // ▼
80
- // y
81
73
}
82
74
83
75
#[ cfg( has_atomics) ]
@@ -88,8 +80,6 @@ pub mod spsc {
88
80
#[ cfg( has_atomics) ]
89
81
unsafe fn store_release ( x : * const Self , val : Self ) {
90
82
( * ( x as * const AtomicU16 ) ) . store ( val, Ordering :: Release )
91
- // atomic::compiler_fence(Ordering::Release); // ▲
92
- // (*(x as *const AtomicU16)).store(val, Ordering::Relaxed) // write
93
83
}
94
84
}
95
85
@@ -105,9 +95,6 @@ pub mod spsc {
105
95
#[ cfg( has_atomics) ]
106
96
unsafe fn load_acquire ( x : * const Self ) -> Self {
107
97
( * ( x as * const AtomicUsize ) ) . load ( Ordering :: Acquire )
108
- // let y = (*(x as *const AtomicUsize)).load(Ordering::Relaxed); // read
109
- // atomic::compiler_fence(Ordering::Acquire); // ▼
110
- // y
111
98
}
112
99
113
100
#[ cfg( has_atomics) ]
@@ -118,8 +105,6 @@ pub mod spsc {
118
105
#[ cfg( has_atomics) ]
119
106
unsafe fn store_release ( x : * const Self , val : Self ) {
120
107
( * ( x as * const AtomicUsize ) ) . store ( val, Ordering :: Release )
121
- // atomic::compiler_fence(Ordering::Release); // ▲
122
- // (*(x as *const AtomicUsize)).store(val, Ordering::Relaxed); // write
123
108
}
124
109
}
125
110
}
0 commit comments