An abstract interface that event consumer can wait for events using event notifier in event loop.
Definition at line 688 of file nvscievent.h.
Data Fields | |
NvSciEventService | EventService |
NvSciError(* | WaitForEvent )(NvSciEventNotifier *eventNotifier, int64_t microseconds) |
Waits up to a configurable timeout for a particular event notification, servicing events with configured callbacks in the interim. More... | |
NvSciError(* | WaitForMultipleEvents )(NvSciEventNotifier *const *eventNotifierArray, size_t eventNotifierCount, int64_t microseconds, bool *newEventArray) |
Waits up to a configurable timeout for any of a set of particular event notifications, servicing events with configured callbacks in the interim. More... | |
NvSciError(* | WaitForMultipleEventsExt )(NvSciEventService *eventService, NvSciEventNotifier *const *eventNotifierArray, size_t eventNotifierCount, int64_t microseconds, bool *newEventArray) |
Waits up to a configurable timeout for any of a set of particular event notifications, servicing events with configured callbacks in the interim. More... | |
NvSciEventService NvSciEventLoopService::EventService |
Definition at line 689 of file nvscievent.h.
NvSciError(* NvSciEventLoopService::WaitForEvent) (NvSciEventNotifier *eventNotifier, int64_t microseconds) |
Waits up to a configurable timeout for a particular event notification, servicing events with configured callbacks in the interim.
Any asynchronous event notifiers that are pending before calling this function will be claimed by some thread for handling before this function returns.
eventNotifier must have been created through EventService.
This function waits up to a configurable timeout to receive a pulse event which is configured on NvSciQnxEventService_CreateNativeEventNotifier(). eventNotifier must have been created through EventService before calling.
[in] | eventNotifier | NvSciEventNotifier object pointer. |
[in] | microseconds | A 64-bit integer timeout in microsecond. Set to -1 for an infinite timeout, for example, the value NV_SCI_EVENT_INFINITE_WAIT. |
Usage considerations
Definition at line 754 of file nvscievent.h.
NvSciError(* NvSciEventLoopService::WaitForMultipleEvents) (NvSciEventNotifier *const *eventNotifierArray, size_t eventNotifierCount, int64_t microseconds, bool *newEventArray) |
Waits up to a configurable timeout for any of a set of particular event notifications, servicing events with configured callbacks in the interim.
Any asynchronous event notifiers that are pending before calling this function will be claimed by some thread for handling before this function returns.
Each event notifier in eventNotifierArray must have been created through EventService.
On a successful return, for each integer i
in the range [0, eventNotifierCount-1]
, newEventArray[i]
will be true only if eventNotifierArray[i]
had a new event.
[in] | eventNotifierArray | Array of NvSciEventNotifier object pointers. It should not be NULL. |
[in] | eventNotifierCount | Event notifier count in eventNotifierArray. |
[in] | microseconds | A 64-bit integer timeout in microsecond. Set to -1 for infinite timeout, for example, the value NV_SCI_EVENT_INFINITE_WAIT. |
[out] | newEventArray | Array of event occurrence. |
Usage considerations
Definition at line 814 of file nvscievent.h.
NvSciError(* NvSciEventLoopService::WaitForMultipleEventsExt) (NvSciEventService *eventService, NvSciEventNotifier *const *eventNotifierArray, size_t eventNotifierCount, int64_t microseconds, bool *newEventArray) |
Waits up to a configurable timeout for any of a set of particular event notifications, servicing events with configured callbacks in the interim.
Any asynchronous event notifiers that are pending before calling this function will be claimed by some thread for handling before this function returns.
Each event notifier in eventNotifierArray must have been created through EventService.
On a successful return, for each integer i
in the range [0, eventNotifierCount-1]
, newEventArray[i]
will be true only if eventNotifierArray[i]
had a new event.
eventNotifierArray can be NULL then this function will not update newEventArray but still service events with configured callbacks, which are created with eventService until the specified timeout period. For this NULL case, timeout in microseconds works in this way.
[in] | eventService | Pointer to the event service object |
[in] | eventNotifierArray | Array of NvSciEventNotifier object pointers. If it is NULL, eventNotifierCount should be zero and newEventArray should be NULL together. |
[in] | eventNotifierCount | Event notifier count in eventNotifierArray. |
[in] | microseconds | A 64-bit integer timeout in microsecond. Set to -1 for infinite timeout, for example, the value NV_SCI_EVENT_INFINITE_WAIT. |
[out] | newEventArray | Array of event occurrence. |
Usage considerations
Definition at line 889 of file nvscievent.h.