Skip to main content

aeron_archive_persistent_subscription_get_and_own_persistent_subscription_context

Function aeron_archive_persistent_subscription_get_and_own_persistent_subscription_context 

Source
pub unsafe extern "C" fn aeron_archive_persistent_subscription_get_and_own_persistent_subscription_context(
    persistent_subscription: *mut aeron_archive_persistent_subscription_t,
) -> *mut aeron_archive_persistent_subscription_context_t
Expand description

Retrieve the underlying aeron_archive_persistent_subscription_context_t used to configure the provided aeron_archive_persistent_subscription_t.

Additionally, calling this function transfers ownership of the returned aeron_archive_persistent_subscription_context_t to the caller. i.e. it is now the caller's responsibility to close the context, which must be done after the persistent subscription has been closed. This is useful when wrapping the C library in other, higher level languages.