Epok Engine

PSYQO SDK

psyqo::Kernel::queueIRQHandler

Function · 1 overload

Function

Queues an IRQ handler to be called from the exception handler.

Belongs to
psyqo::Kernel
Header
kernel.hh
Overloads
1

Declaration

Declaration
void queueIRQHandler(IRQ irq, eastl::function<void()>&& lambda)

Queues an IRQ handler to be called from the exception handler.

ParameterTypeMeaning
irqIRQThe IRQ to handle.
lambdaeastl::function<void ()> &&The function to call when the IRQ is triggered.

Returns: Nothing (void).

Example

C++ example
#include "psyqo/kernel.hh"

// Assume these named values have been initialized with valid data:
// IRQ irq
// eastl::function<void ()> && lambda

psyqo::Kernel::queueIRQHandler(irq, lambda);

Why use it

The asynchronous shape lets the frame loop continue while hardware or queued work completes.

Trade-offs and warnings

Captured data and buffers must remain valid until the callback or task has completed. Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/kernel.hh:235

Related members