dxFeed Graal Native SDK 3.15.0
Loading...
Searching...
No Matches
dxfg_v4_event_queue.h File Reference

The event queue: the events of subscriptions received on the application's own thread, without callbacks (see the group Event queue (v4)). More...

#include "dxfg_v4_common.h"
#include "dxfg_v4_events.h"
#include "dxfg_v4_javac.h"
#include "dxfg_v4_subscription.h"

Go to the source code of this file.

Data Structures

struct  dxfg_v4_event_queue_t
 The handle of an event queue (dxfg_v4_EventQueue_new()). More...
struct  dxfg_v4_tagged_event_list
 A list of events with a tag for each: the list returned by dxfg_v4_EventQueue_pollTagged(). More...

Macros

#define DXFG_EVENT_QUEUE_NO_EVENTS   ((int32_t)1)
 The result of dxfg_v4_EventQueue_poll() when no events arrived before the timeout or the queue was woken up, or when only the work of the models and the collector on the queue ran.
#define DXFG_EVENT_QUEUE_CLOSED   ((int32_t)2)
 The result of dxfg_v4_EventQueue_poll() when the queue is closed.

Typedefs

typedef struct dxfg_v4_event_queue_t dxfg_v4_event_queue_t
 The handle of an event queue (dxfg_v4_EventQueue_new()).
typedef struct dxfg_v4_tagged_event_list dxfg_v4_tagged_event_list
 A list of events with a tag for each: the list returned by dxfg_v4_EventQueue_pollTagged().
typedef enum dxfg_v4_ready_signal_kind_t dxfg_v4_ready_signal_kind_t
 The kind of the OS object that is the ready signal of an event queue (dxfg_v4_EventQueue_setReadySignal()).

Enumerations

enum  dxfg_v4_ready_signal_kind_t { DXFG_V4_READY_SIGNAL_NONE = 0 , DXFG_V4_READY_SIGNAL_FD = 1 , DXFG_V4_READY_SIGNAL_WINDOWS_EVENT = 2 }
 The kind of the OS object that is the ready signal of an event queue (dxfg_v4_EventQueue_setReadySignal()). More...

Functions

int32_t dxfg_v4_EventQueue_new (graal_isolatethread_t *thread, dxfg_v4_subscription_t *sub, DXFG_OUT dxfg_v4_event_queue_t **queue)
int32_t dxfg_v4_EventQueue_create (graal_isolatethread_t *thread, DXFG_OUT dxfg_v4_event_queue_t **queue)
int32_t dxfg_v4_EventQueue_attach (graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue, dxfg_v4_subscription_t *sub, int64_t tag)
int32_t dxfg_v4_EventQueue_getExecutor (graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue, DXFG_OUT dxfg_v4_executor_t **executor)
int32_t dxfg_v4_EventQueue_poll (graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue, int64_t timeoutInMilliseconds, int32_t limit, DXFG_OUT dxfg_v4_event_type_list **events)
int32_t dxfg_v4_EventQueue_pollTagged (graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue, int64_t timeoutInMilliseconds, int32_t limit, DXFG_OUT dxfg_v4_tagged_event_list **events)
int32_t dxfg_v4_tagged_event_list_release (graal_isolatethread_t *thread, dxfg_v4_tagged_event_list *events)
int32_t dxfg_v4_EventQueue_wakeUp (graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue)
int32_t dxfg_v4_EventQueue_close (graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue)
int32_t dxfg_v4_EventQueue_getDroppedEvents (graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue, DXFG_OUT int64_t *droppedEvents)
int32_t dxfg_v4_EventQueue_setReadySignal (graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue, dxfg_v4_ready_signal_kind_t kind, int64_t handle)
 Sets, replaces or removes the ready signal of the queue: the OS object that the SDK makes ready whenever the queue has work, so that an event loop can poll with the timeout 0 on its own thread (see the group description for the contract of the host).

Detailed Description

The event queue: the events of subscriptions received on the application's own thread, without callbacks (see the group Event queue (v4)).