File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,19 @@ use x86_64::{
34
34
35
35
mod memory_descriptor;
36
36
37
- static SYSTEM_TABLE : VeryUnsafeCell < Option < SystemTable < Boot > > > = VeryUnsafeCell :: new ( None ) ;
37
+ static SYSTEM_TABLE : RacyCell < Option < SystemTable < Boot > > > = RacyCell :: new ( None ) ;
38
38
39
- struct VeryUnsafeCell < T > ( UnsafeCell < T > ) ;
39
+ struct RacyCell < T > ( UnsafeCell < T > ) ;
40
40
41
- impl < T > VeryUnsafeCell < T > {
41
+ impl < T > RacyCell < T > {
42
42
const fn new ( v : T ) -> Self {
43
43
Self ( UnsafeCell :: new ( v) )
44
44
}
45
45
}
46
46
47
- unsafe impl < T > Sync for VeryUnsafeCell < T > { }
47
+ unsafe impl < T > Sync for RacyCell < T > { }
48
48
49
- impl < T > core:: ops:: Deref for VeryUnsafeCell < T > {
49
+ impl < T > core:: ops:: Deref for RacyCell < T > {
50
50
type Target = UnsafeCell < T > ;
51
51
52
52
fn deref ( & self ) -> & Self :: Target {
You can’t perform that action at this time.
0 commit comments