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... | |
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.
[in] | thisEventNotifier | The event handler to unregister and delete. |
Usage considerations
Definition at line 516 of file nvscievent.h.
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.
[in] | eventNotifier | The event notifier that reports each event. Must not already be in use by another event loop. |
[in] | callback | The function to call to handle the event. If NULL, handler will be unregistered. |
[in] | cookie | The parameter to pass to the callback. |
[in] | priority | The parameter is not supported and any value is ignored. |
Usage considerations
Definition at line 478 of file nvscievent.h.