summaryrefslogtreecommitdiff
path: root/common_smp/src/tx_thread_relinquish.c
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-10-02 10:42:44 -0400
committerGitHub <[email protected]>2026-10-02 10:42:44 -0400
commit93387b0a60382a29579bbad5045c68328e3751df (patch)
tree42be790d602cb76f55090e5a7c418df7ea2b3428 /common_smp/src/tx_thread_relinquish.c
parent44d7c95c582d415c4ad84527180b29c93c3bf664 (diff)
parent28281cd5647d4671236ca08d19bd18ed15b2265a (diff)
Merge pull request #783 from eclipse-threadx/devv6.5.2.202603_rel
Merged changes ahead of the v6.5.2.202603 release
Diffstat (limited to 'common_smp/src/tx_thread_relinquish.c')
-rw-r--r--common_smp/src/tx_thread_relinquish.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/common_smp/src/tx_thread_relinquish.c b/common_smp/src/tx_thread_relinquish.c
index 10982b26..f07d2b56 100644
--- a/common_smp/src/tx_thread_relinquish.c
+++ b/common_smp/src/tx_thread_relinquish.c
@@ -9,6 +9,8 @@
* SPDX-License-Identifier: MIT
**************************************************************************/
+// Portions of this file were generated with AI assistance.
+
/**************************************************************************/
/**************************************************************************/
@@ -290,8 +292,10 @@ UINT finished;
}
} while ((next_thread != thread_ptr) && (finished == TX_FALSE));
- /* Determine if we are finished. */
- if (finished == TX_FALSE)
+ /* Determine if we are finished. A rebalance request means the loop stopped
+ at a thread it could not place rather than running out of threads, so the
+ execute list still has to be rebuilt and this is not that case. */
+ if ((finished == TX_FALSE) && (rebalance == TX_FALSE))
{
/* No other thread is ready at this priority... simply return. */