@@ -264,9 +264,9 @@ impl Thread {
264
264
self . inner . lock ( ) . current_transaction = Some ( transaction) ;
265
265
}
266
266
267
- /// Attemps to fetch a work item from the thread-local queue. The behaviour if it the queue is
267
+ /// Attempts to fetch a work item from the thread-local queue. The behaviour if the queue is
268
268
/// empty depends on `wait`: if it is true, the function waits for some work to be queued (or a
269
- /// signal); otherwise it returns indicating that none is avaible .
269
+ /// signal); otherwise it returns indicating that none is available .
270
270
fn get_work_local ( self : & Arc < Self > , wait : bool ) -> KernelResult < Arc < dyn DeliverToRead > > {
271
271
// Try once if the caller does not want to wait.
272
272
if !wait {
@@ -291,7 +291,7 @@ impl Thread {
291
291
}
292
292
}
293
293
294
- /// Attemps to fetch a work item from the thread-local queue, falling back to the process-wide
294
+ /// Attempts to fetch a work item from the thread-local queue, falling back to the process-wide
295
295
/// queue if none is available locally.
296
296
///
297
297
/// This must only be called when the thread is not participating in a transaction chain. If it
@@ -354,7 +354,7 @@ impl Thread {
354
354
Ok ( ( ) )
355
355
}
356
356
357
- /// Attemps to push to given work item to the thread if it's a looper thread (i.e., if it's
357
+ /// Attempts to push to given work item to the thread if it's a looper thread (i.e., if it's
358
358
/// part of a thread pool) and is alive. Otherwise, push the work item to the process instead.
359
359
pub ( crate ) fn push_work_if_looper ( & self , work : Arc < dyn DeliverToRead > ) -> BinderResult {
360
360
let mut inner = self . inner . lock ( ) ;
@@ -541,7 +541,7 @@ impl Thread {
541
541
Ok ( ( ) )
542
542
} ) ( )
543
543
. map_err ( |mut err| {
544
- // At this point we only return BR_TRANSACTION_COMPLETE to the caller, and we must let
544
+ // At this point we only return ` BR_TRANSACTION_COMPLETE` to the caller, and we must let
545
545
// the sender know that the transaction has completed (with an error in this case).
546
546
let reply = Either :: Right ( BR_FAILED_REPLY ) ;
547
547
orig. from . deliver_reply ( reply, & orig) ;
@@ -552,7 +552,7 @@ impl Thread {
552
552
553
553
/// Determines the current top of the transaction stack. It fails if the top is in another
554
554
/// thread (i.e., this thread belongs to a stack but it has called another thread). The top is
555
- /// `None` if the thread is not currently participating in a transaction stack.
555
+ /// [ `None`] if the thread is not currently participating in a transaction stack.
556
556
fn top_of_transaction_stack ( & self ) -> KernelResult < Option < Arc < Transaction > > > {
557
557
let inner = self . inner . lock ( ) ;
558
558
Ok ( if let Some ( cur) = & inner. current_transaction {
0 commit comments