NvSciEventService API Usage
NvSciEventService is an event-driven framework that provides OS-agnostic APIs to send events and wait for events. The framework enables you to build portable event-driven applications and simplifies the steps required to prepare endpoint connections.
Initializing the NvSciEventService Library
Each application must call
NvSciEventLoopServiceCreateSafe()
before using any of the other
NvSciEventService and NvSciIpc APIs. This call initializes the NvSciEventService library
instance for the application.
Note:
NvSciEventLoopServiceCreateSafe()
must be called by the application
only once at startup. Only single loop service is currently supported.
NvSciEventLoopService *eventLoopService;
NvSciError err;
err = NvSciEventLoopServiceCreateSafe(1, NULL, &eventLoopService);
if (err != NvSciError_Success) {
goto fail;
}
err = NvSciIpcInit();
if (err != NvSciError_Success) {
return err;