From f9faa2e1303957134ad0169ea9ac73c0e6624b47 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 16 Jul 2025 10:01:59 -0400 Subject: [PATCH] MT#62181 iterate list with lock held Change-Id: I28d5e1616973e2ec6c721f61458fcc7a7a360484 --- core/AmThread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/AmThread.cpp b/core/AmThread.cpp index d56d9a8f..67b1f1d9 100644 --- a/core/AmThread.cpp +++ b/core/AmThread.cpp @@ -191,7 +191,9 @@ void AmThreadWatcher::run() } else { DBG("thread %lu still running.\n", cur_thread->_pid); + _l.lock(); it++; + _l.unlock(); } _l.lock();