Creating a Local Event

A local event does not require an associated endpoint. It uses two threads of a process. When creating a local event, use NvSciEventLoopServiceCreateSafe() instead of NvSciIpcInit.

One thread called a sender is for sending a signal and the other called receiver is for waiting for the signal.

The application must first create a local event by calling EventService.CreateLocalEvent(). This call also creates an event notifier and associates the notifier with the local event.

Create local event

NvSciEventLoopService *eventLoopService;
NvSciLocalEvent *localEvent;
NvSciError err;
err = eventLoopService->EventService.CreateLocalEvent(
                    &eventLoopService->EventService,
                    &localEvent);
if (err != NvSciError_Success) {
        goto fail;
}