From 5e55dafe1d80bcda1206d00d2b7c08effe2171b5 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 4 Apr 2024 11:22:38 -0400 Subject: [PATCH] MT#55283 use relaxed memory ordering for ICE TS Change-Id: I923082f034377f727d249f4b4b6b881ca8c384be --- daemon/ice.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon/ice.c b/daemon/ice.c index 939d6cd9d..a33b79cac 100644 --- a/daemon/ice.c +++ b/daemon/ice.c @@ -430,7 +430,7 @@ static void __ice_agent_initialize(struct ice_agent *ag) { create_random_ice_string(call, &ag->ufrag[1], 8); create_random_ice_string(call, &ag->pwd[1], 26); - atomic64_set(&ag->last_activity, rtpe_now.tv_sec); + atomic64_set_na(&ag->last_activity, rtpe_now.tv_sec); } static struct ice_agent *__ice_agent_new(struct call_media *media) { @@ -512,7 +512,7 @@ void ice_update(struct ice_agent *ag, struct stream_params *sp, bool allow_reset log_info_ice_agent(ag); - atomic64_set(&ag->last_activity, rtpe_now.tv_sec); + atomic64_set_na(&ag->last_activity, rtpe_now.tv_sec); media = ag->media; call = media->call; @@ -894,7 +894,7 @@ static void __do_ice_checks(struct ice_agent *ag) { if (!ag->pwd[0].s) return; - atomic64_set(&ag->last_activity, rtpe_now.tv_sec); + atomic64_set_na(&ag->last_activity, rtpe_now.tv_sec); __DBG("running checks, call "STR_FORMAT" tag "STR_FORMAT"", STR_FMT(&ag->call->callid), STR_FMT(&ag->media->monologue->tag)); @@ -1307,7 +1307,7 @@ int ice_request(stream_fd *sfd, const endpoint_t *src, if (!ag) return -1; - atomic64_set(&ag->last_activity, rtpe_now.tv_sec); + atomic64_set_na(&ag->last_activity, rtpe_now.tv_sec); /* determine candidate pair */ { @@ -1416,7 +1416,7 @@ int ice_response(stream_fd *sfd, const endpoint_t *src, if (!ag) return -1; - atomic64_set(&ag->last_activity, rtpe_now.tv_sec); + atomic64_set_na(&ag->last_activity, rtpe_now.tv_sec); { LOCK(&ag->lock);