Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • NVIDIA DRIVE OS Linux SDK API Reference

    6.0.9 Release
    All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

    Detailed Description

    An abstract interface to notify event to event consumer and to register event handler of the event consumer client process.

    Definition at line 435 of file nvscievent.h.

    Data Fields

    NvSciError(* SetHandler )(NvSciEventNotifier *thisEventNotifier, void(*callback)(void *cookie), void *cookie, uint32_t priority)
     Registers or unregisters a handler for a particular event notifier. More...
     
    void(* Delete )(NvSciEventNotifier *thisEventNotifier)
     Unregisters any previously-registered event handler and delete this event notifier. More...
     

    Field Documentation

    ◆ Delete

    void(* NvSciEventNotifier::Delete) (NvSciEventNotifier *thisEventNotifier)

    Unregisters any previously-registered event handler and delete this event notifier.

    If the event handler's callback is concurrently executing in another thread, then this function will still return immediately, but the event handler will not be deleted until after the callback returns.

    This function releases the NvSciEventNotifier and unregisters the event handler. It should be called when the NvSciEventNotifier 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]thisEventNotifierThe event handler to unregister and delete.
    Precondition
    NvSciEventLoopServiceCreateSafe() must be called. NvSciIpcGetEventNotifier() must be called for NvSciNativeEvent. NvSciEventService::CreateLocalEvent() must be called for NvSciLocalEvent.


    Usage considerations

    • Allowed context for the API call
      • Interrupt: No
      • Signal handler: No
      • Thread-safe: Yes
      • Async/Sync: Sync
    • Required Privileges(QNX): None
    • API Group
      • Init: Yes
      • Runtime: No
      • De-Init: Yes

    Definition at line 516 of file nvscievent.h.

    ◆ SetHandler

    NvSciError(* NvSciEventNotifier::SetHandler) (NvSciEventNotifier *thisEventNotifier, void(*callback)(void *cookie), void *cookie, uint32_t priority)

    Registers or unregisters a handler for a particular event notifier.

    In general, handlers for distinct event notifiers may run concurrently with one another. The NvSciEventService promises however that no single event notifier will have its handler invoked concurrently.

    Handlers for both NvSciNativeEvent and NvSciLocalEvent can be registered.

    Parameters
    [in]eventNotifierThe event notifier that reports each event. Must not already be in use by another event loop.
    [in]callbackThe function to call to handle the event. If NULL, handler will be unregistered.
    [in]cookieThe parameter to pass to the callback.
    [in]priorityThe parameter is not supported and any value is ignored.
    Returns
    NvSciError, the completion code of operations:
    Precondition
    NvSciEventLoopServiceCreateSafe() must be called. NvSciIpcGetEventNotifier() must be called for NvSciNativeEvent. NvSciEventService::CreateLocalEvent() must be called for NvSciLocalEvent.


    Usage considerations

    • Allowed context for the API call
      • Interrupt: Yes
      • Signal handler: Yes
      • Thread-safe: Yes
      • Async/Sync: Sync
    • Required Privileges(QNX): None
    • API Group
      • Init: Yes
      • Runtime: No
      • De-Init: No

    Definition at line 478 of file nvscievent.h.


    The documentation for this struct was generated from the following file:
    人人超碰97caoporen国产