dxFeed Graal Native SDK 3.15.0
Loading...
Searching...
No Matches
dxfg_v4_event_queue.h
Go to the documentation of this file.
1// Copyright (c) 2026 Devexperts LLC.
2// SPDX-License-Identifier: MPL-2.0
3
9
10#ifndef DXFG_V4_EVENT_QUEUE_H
11#define DXFG_V4_EVENT_QUEUE_H
12
13#include "dxfg_v4_common.h"
14#include "dxfg_v4_events.h"
15#include "dxfg_v4_javac.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
185
194
202#define DXFG_EVENT_QUEUE_NO_EVENTS ((int32_t)1)
203
219
227#define DXFG_EVENT_QUEUE_CLOSED ((int32_t)2)
228
249
264
286 dxfg_v4_subscription_t *sub, int64_t tag);
287
306 DXFG_OUT dxfg_v4_executor_t **executor);
307
340 int64_t timeoutInMilliseconds, int32_t limit,
342
363 int64_t timeoutInMilliseconds, int32_t limit,
365
378
393
412
432 DXFG_OUT int64_t *droppedEvents);
433
451
499DXFG_EXPERIMENTAL
501 dxfg_v4_ready_signal_kind_t kind, int64_t handle);
502
504
505#ifdef __cplusplus
506}
507#endif
508
509#endif // DXFG_V4_EVENT_QUEUE_H
The v4 functions of dxfg_common.h and the v4 names of its types (see the group Common (v4)).
The v4 functions of dxfg_events.h and the v4 names of its types (see the group Events (v4)).
The v4 functions of dxfg_javac.h and the v4 names of its types (see the group Javac (v4)).
The v4 functions of dxfg_subscription.h and the v4 names of its types (see the group Subscription (v4...
struct __graal_isolatethread_t graal_isolatethread_t
The state of one thread attached to an isolate: the first parameter (thread) of the SDK functions.
Definition graal_isolate.h:60
#define DXFG_OUT
Definition dxfg_common.h:37
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_EventQueue_close(graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue)
int32_t dxfg_v4_EventQueue_wakeUp(graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue)
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 whene...
int32_t dxfg_v4_EventQueue_getExecutor(graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue, DXFG_OUT dxfg_v4_executor_t **executor)
dxfg_v4_ready_signal_kind_t
The kind of the OS object that is the ready signal of an event queue (dxfg_v4_EventQueue_setReadySign...
Definition dxfg_v4_event_queue.h:442
int32_t dxfg_v4_tagged_event_list_release(graal_isolatethread_t *thread, dxfg_v4_tagged_event_list *events)
int32_t dxfg_v4_EventQueue_create(graal_isolatethread_t *thread, DXFG_OUT dxfg_v4_event_queue_t **queue)
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_new(graal_isolatethread_t *thread, dxfg_v4_subscription_t *sub, DXFG_OUT 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_attach(graal_isolatethread_t *thread, dxfg_v4_event_queue_t *queue, dxfg_v4_subscription_t *sub, int64_t tag)
@ DXFG_V4_READY_SIGNAL_NONE
Definition dxfg_v4_event_queue.h:444
@ DXFG_V4_READY_SIGNAL_FD
Definition dxfg_v4_event_queue.h:447
@ DXFG_V4_READY_SIGNAL_WINDOWS_EVENT
Definition dxfg_v4_event_queue.h:449
dxfg_event_type_list dxfg_v4_event_type_list
A list of events.
Definition dxfg_v4_events.h:154
dxfg_executor_t dxfg_v4_executor_t
A handle of a Java Executor object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_v4_feed.h:36
dxfg_subscription_t dxfg_v4_subscription_t
A handle of a Java DXFeedSubscription object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_v4_feed.h:30
The base structure of every event: the first field of all the event structures.
Definition dxfg_events.h:234
The handle of a Java object: the reference by which the C code refers to an object that lives in Java...
Definition dxfg_javac.h:60
The handle of an event queue (dxfg_v4_EventQueue_new()).
Definition dxfg_v4_event_queue.h:190
dxfg_java_object_handler handler
Definition dxfg_v4_event_queue.h:192
A list of events with a tag for each: the list returned by dxfg_v4_EventQueue_pollTagged().
Definition dxfg_v4_event_queue.h:211
int64_t * tags
Definition dxfg_v4_event_queue.h:217
dxfg_event_type_t ** elements
Definition dxfg_v4_event_queue.h:215
int32_t size
Definition dxfg_v4_event_queue.h:213