File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
library/std/src/sys/hermit Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ use crate::sys::hermit::abi;
13
13
/// This structure behaves a lot like a common mutex. There are some differences:
14
14
///
15
15
/// - By using busy waiting, it can be used outside the runtime.
16
- /// - It is a so called ticket lock (https://en.wikipedia.org/wiki/Ticket_lock)
17
- /// and completly fair.
16
+ /// - It is a so called ticket lock and is completly fair.
18
17
#[ cfg_attr( target_arch = "x86_64" , repr( align( 128 ) ) ) ]
19
18
#[ cfg_attr( not( target_arch = "x86_64" ) , repr( align( 64 ) ) ) ]
20
19
struct Spinlock < T : ?Sized > {
@@ -98,7 +97,7 @@ impl PriorityQueue {
98
97
}
99
98
}
100
99
101
- /// Add a task handle by its priority to the queue
100
+ /// Add a task id by its priority to the queue
102
101
pub fn push ( & mut self , prio : abi:: Priority , id : abi:: Tid ) {
103
102
let i: usize = prio. into ( ) . into ( ) ;
104
103
self . prio_bitmap |= ( 1 << i) as u64 ;
You can’t perform that action at this time.
0 commit comments