NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

An OS-agnostic object that sends signal to another thread in the same process.

Definition at line 179 of file nvscievent.h.

Collaboration diagram for NvSciLocalEvent:

Data Fields

NvSciEventNotifier * eventNotifier
 Event notifier associated with this local event. More...
 
NvSciError(* Signal )(NvSciLocalEvent *thisLocalEvent)
 Sends an intra-process local event signal. More...
 
void(* Delete )(NvSciLocalEvent *thisLocalEvent)
 Releases any resources associated with this local event. More...
 

Field Documentation

◆ Delete

void(* NvSciLocalEvent::Delete) (NvSciLocalEvent *thisLocalEvent)

Releases any resources associated with this local event.

This function must be called after releasing notifier and when NvSciLocalEvent is no longer required.

Note
This API can be called in Init mode to release resources in error handling or to test functionality.
Parameters
[in]thisLocalEventNvSciLocalEvent object pointer Valid value: thisLocalEvent must be non-NULL and should be obtained from a successful call to NvSciEventService::CreateLocalEvent() API.
Returns
void
Precondition
Invocation of NvSciEventService::CreateLocalEvent() must be successful.


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Async/Sync: Sync
  • Required privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: No
    • Reinit/Deinit Preparation: Yes
  • Implementation ASIL: ASIL D
  • Maturity: GA

Definition at line 255 of file nvscievent.h.

◆ eventNotifier

NvSciEventNotifier* NvSciLocalEvent::eventNotifier

Event notifier associated with this local event.

Definition at line 181 of file nvscievent.h.

◆ Signal

NvSciError(* NvSciLocalEvent::Signal) (NvSciLocalEvent *thisLocalEvent)

Sends an intra-process local event signal.

Any thread which is blocked by local event notifier associated with local event will be unblocked by this signal.

Parameters
[in]thisLocalEventNvSciLocalEvent object pointer Valid value: thisLocalEvent must be non-NULL and should be obtained from a successful call to NvSciEventService::CreateLocalEvent() API and has not yet been freed using NvSciLocalEvent::Delete().
Returns
::NvSciError, the completion code of operations:
  • ::NvSciError_Success Indicates a successful operation.
  • ::NvSciError_BadParameter Indicates an invalid input parameter.
  • ::NvSciError_TryItAgain Indicates an kernel pulse queue shortage.
  • ::NvSciError_InvalidState Indicates an invalid operation state.
Precondition
Invocation of NvSciEventService::CreateLocalEvent() must be successful.


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Async/Sync: Sync
  • Required privileges: None
  • Allowed execution state
    • Initialization: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
  • Implementation ASIL: ASIL D
  • Maturity: GA

Definition at line 219 of file nvscievent.h.


The documentation for this struct was generated from the following file: