|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
12 #ifndef INCLUDED_NVSCIEVENT_H
13 #define INCLUDED_NVSCIEVENT_H
160 #define NV_SCI_EVENT_INFINITE_WAIT -1
161 #define NV_SCI_EVENT_PRIORITIES 4
170 typedef struct NvSciTimerEvent NvSciTimerEvent;
171 typedef struct NvSciEventLoop NvSciEventLoop;
368 NvSciTimerEvent** newTimerEvent);
468 void (*callback)(
void* cookie),
520 size_t maxEventLoops,
597 size_t maxEventLoops,
638 size_t maxEventLoops,
663 NvSciEventLoop** eventLoop);
716 int64_t microseconds);
777 size_t eventNotifierCount,
778 int64_t microseconds,
779 bool* newEventArray);
853 size_t eventNotifierCount,
854 int64_t microseconds,
855 bool* newEventArray);
920 size_t eventNotifierCount,
921 int64_t microseconds,
922 bool* newEventArray);
970 uint32_t eventNotifierCount,
1079 bool* isCompatible);
NvSciError
Return/error codes for all NvSci functions.
NvSciError(* Signal)(NvSciLocalEvent *thisLocalEvent)
Sends an intra-process local event signal.
NvSciEventNotifier * eventNotifier
Event notifier associated with this local event.
static const uint32_t NvSciEventMinorVersion
NvSciEvent API Minor version number.
NvSciError(* CreateLocalEvent)(NvSciEventService *thisEventService, NvSciLocalEvent **newLocalEvent)
Creates an intra-process local event with an event notifier that reports each event signaled through ...
NvSciError NvSciEventCheckVersionCompatibility(uint32_t majorVer, uint32_t minorVer, bool *isCompatible)
Check NvSciEventSerivice library version compatibility.
An abstract interface to notify event to event consumer and to register event handler of the event co...
NvSciError NvSciEventLoopServiceCreate(size_t maxEventLoops, NvSciEventLoopService **newEventLoopService)
Creates a new event loop service.
NvSciError(* WaitForEvent)(NvSciEventNotifier *eventNotifier, int64_t microseconds)
Waits up to a configurable timeout for a particular event notification, servicing events with configu...
static const uint32_t NvSciEventMajorVersion
NvSciEvent API Major version number.
NvSciError NvSciEventLoopServiceCreateSafeX(size_t maxEventLoops, void *config, NvSciEventLoopService **newEventLoopService)
Creates a new event loop service that has the same properties as created by NvSciEventLoopServiceCrea...
NvSciError NvSciEventLoopServiceCreateSafe(size_t maxEventLoops, void *config, NvSciEventLoopService **newEventLoopService)
Creates a new event loop service.
void(* Delete)(NvSciEventNotifier *thisEventNotifier)
Unregisters any previously-registered event handler and delete this event notifier.
An OS-agnostic object that sends signal to another thread in the same process.
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,...
typedef void(WFD_APIENTRY PFNWFDBINDSOURCETOPIPELINEWITHTIMESTAMPNV)(const WFDDevice device
NvSciEventService EventService
void(* Delete)(NvSciLocalEvent *thisLocalEvent)
Releases any resources associated with this local event.
An abstract interface that event consumer can wait for events using event notifier in event loop.
void(* Delete)(NvSciEventService *thisEventService)
Releases any resources associated with this event service.
NvSciError(* SetHandler)(NvSciEventNotifier *thisEventNotifier, void(*callback)(void *cookie), void *cookie, uint32_t priority)
Registers or unregisters a handler for a particular event notifier.
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,...
NvSciError NvSciEventMoveNotifier(NvSciEventService *oldEventService, NvSciEventService *newEventService, NvSciEventNotifier *eventNotifier)
Move event notifier.
NvSciError(* WaitForAnyEvent)(NvSciEventNotifier *const *eventNotifierArray, size_t eventNotifierCount, int64_t microseconds, bool *newEventArray)
Waits up to a configurable timeout for the first occurence of any of a set of particular event notifi...
An abstract interface for a program's event handling infrastructure.
struct NvSciNativeEvent NvSciNativeEvent