MCPcopy Index your code
hub / github.com/Andy-Python-Programmer/aero / lock_irq

Method lock_irq

src/aero_kernel/src/utils/sync.rs:344–355  ·  view source on GitHub ↗

Locks the [`Mutex`] and returns a IRQ guard that permits access to the inner data and disables interrupts while the lock is held. The returned value may be dereferenced for data access and the lock will be dropped and interrupts will be re-enabled when the guard falls out of scope. Deadlocks occur if a thread tries to acquire a lock that will never become free. Thus, locking interrupts is useful

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

_printFunction · 0.80
clear_screenFunction · 0.80
backspaceFunction · 0.80
get_resolutionFunction · 0.80
get_rendy_infoFunction · 0.80
get_rows_colsFunction · 0.80
get_cursor_positionFunction · 0.80
set_cursor_positionFunction · 0.80
logMethod · 0.80
get_log_bufferMethod · 0.80
get_realtime_clockFunction · 0.80
pit_irq_handlerFunction · 0.80

Calls 3

lockMethod · 0.80
is_enabledFunction · 0.50
disable_interruptsFunction · 0.50

Tested by

no test coverage detected