Configure Block to Use NvSciEventService#
As an optional setup, applications can configure a block to use NvSciEventService
for event notification.
NvSciError
NvSciStreamBlockEventServiceSetup(
NvSciStreamBlock const block,
NvSciEventService *const eventService,
NvSciEventNotifier **const eventNotifier
)
The function returns a NvSciEventNotifier
object that applications can use to wait for new events on the block. It is the responsibility of the application to delete the NvSciEventNotifier
objects when they are no longer needed. Event-notification behavior of a block is undefined after its associatedNvSciEventNotifier
object is deleted.
If any NvSciStream API, including block connection, is called on a block before this function, the block will automatically be configured to use the default event-notification method, described in the following Event Handling section. The event-notification method of a block cannot be changed once it is determined.