Epok Engine

EPOK RUNTIME

epok::UtilityLibrary::event_queue_poll

Method · 1 overload

Method

Performs `event queue poll` as part of the utility module.

Belongs to
epok::UtilityLibrary
Header
utility.hpp
Overloads
1

Declaration

static
Declaration
static EventQueuePoll event_queue_poll(GameplayEventQueue4 state)

Performs `event queue poll` as part of the utility module.

ParameterTypeMeaning
stateGameplayEventQueue4Value supplied for state. Keep referenced or pointed-to data valid for the complete call.

Returns: EventQueuePoll. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// GameplayEventQueue4 state

auto result = epok::UtilityLibrary::event_queue_poll(state);

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.

Declared in runtime/utility.hpp:187

Related members