|
NVIDIA DRIVE OS Linux SDK API Reference
|
6.0.5 Release
|
Go to the documentation of this file.
11 #ifndef INCLUDED_NVSCIEVENT_H
12 #define INCLUDED_NVSCIEVENT_H
149 #define NV_SCI_EVENT_INFINITE_WAIT -1
150 #define NV_SCI_EVENT_PRIORITIES 4
157 typedef struct NvSciNativeEvent NvSciNativeEvent;
158 typedef struct NvSciLocalEvent NvSciLocalEvent;
159 typedef struct NvSciTimerEvent NvSciTimerEvent;
160 typedef struct NvSciEventLoop NvSciEventLoop;
236 NvSciNativeEvent* nativeEvent,
276 NvSciLocalEvent** newLocalEvent);
291 NvSciTimerEvent** newTimerEvent);
392 void (*callback)(
void* cookie),
474 size_t maxEventLoops,
541 size_t maxEventLoops,
566 NvSciEventLoop** eventLoop);
624 int64_t microseconds);
689 size_t eventNotifierCount,
690 int64_t microseconds,
691 bool* newEventArray);
770 size_t eventNotifierCount,
771 int64_t microseconds,
772 bool* newEventArray);
819 uint32_t eventNotifierCount,
NvSciError
Return/error codes for all NvSci functions.
static const uint32_t NvSciEventMinorVersion
NvSciEvent API Minor version number.
NvSciError NvSciEventCheckVersionCompatibility(uint32_t majorVer, uint32_t minorVer, bool *isCompatible)
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 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.
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,...
NvSciEventService EventService
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,...
An abstract interface for a program's event handling infrastructure.
人人超碰97caoporen国产