X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fsession.h;h=599892d13508d7470f829f6c89da84b18aea6b9c;hp=4e515ad7703bc03b3bb5530118063f29ac7051f5;hb=2c2de71ef6dae09fa1a61f02051b68f60b0a1750;hpb=36d2e35df61339e4394e84ad9790b984d259e0f0 diff --git a/include/lttng/session.h b/include/lttng/session.h index 4e515ad77..599892d13 100644 --- a/include/lttng/session.h +++ b/include/lttng/session.h @@ -90,12 +90,25 @@ extern int lttng_create_session_live(const char *name, const char *url, * The session will not be usable, tracing will be stopped thus buffers will be * flushed. * + * This call will wait for data availability for each domain of the session, + * which can take an arbitrary amount of time. However, when returning the + * tracing data is guaranteed to be ready to be read and analyzed. + * + * lttng_destroy_session_no_wait() may be used if such a guarantee is not + * needed. + * * The name can't be NULL here. * * Return 0 on success else a negative LTTng error code. */ extern int lttng_destroy_session(const char *name); +/* + * Behaves exactly like lttng_destroy_session but does not wait for data + * availability. + */ +extern int lttng_destroy_session_no_wait(const char *name); + /* * List all the tracing sessions. *