Change-Id: Ibd02f3e2c8d91fc8aa09097be2ea7b563001b1da
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
*/
static void update_agent_app(const struct agent_app *app)
{
- struct ltt_session *session, *stmp;
struct ltt_session_list *list;
list = session_get_list();
LTTNG_ASSERT(list);
- cds_list_for_each_entry_safe (session, stmp, &list->head, list) {
+ for (auto *session :
+ lttng::urcu::list_iteration_adapter<ltt_session, <t_session::list>(list->head)) {
if (!session_get(session)) {
continue;
}