Epok Engine

PSYQO SDK

psyqo::Kernel::queuePsyqoBreakHandler

Function · 1 overload

Function

Queues a break handler for psyqo's reserved category.

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

Declaration

Declaration
void queuePsyqoBreakHandler(eastl::function<bool(uint32_t)>&& handler)

Queues a break handler for psyqo's reserved category.

ParameterTypeMeaning
handlereastl::function<bool (uint32_t)> &&The handler to call when a break occurs.

Returns: Nothing (void).

Example

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

// Assume these named values have been initialized with valid data:
// eastl::function<bool (uint32_t)> && handler

psyqo::Kernel::queuePsyqoBreakHandler(handler);

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:343

Related members