void ext_dns_exit_ctx ( extDnsCtx ctx,
axl_bool  free_ctx 

Terminates the ext-dns library execution on the provided context.

Stops all internal ext-dns process and all allocated resources associated to the context. It also close all channels for all connection that where not closed until call this function.

This function is reentrant, allowing several threads to call ext_dns_exit_ctx function at the same time. Only one thread will actually release resources allocated.

ctxThe context to terminate. The function do not dealloc the context provided.
free_ctxAllows to signal the function if the context provided must be deallocated (by calling to ext_dns_ctx_free).

References ext_dns_ctx_free2(), ext_dns_ctx_unlock(), ext_dns_init_check(), ext_dns_mutex_destroy(), ext_dns_mutex_lock(), and ext_dns_mutex_unlock().