Skip to content

Commit b12bd44

Browse files
committed
Release 6.1.6
1 parent 6ffaf84 commit b12bd44

File tree

388 files changed

+33117
-1140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

388 files changed

+33117
-1140
lines changed

common/inc/tx_api.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/* APPLICATION INTERFACE DEFINITION RELEASE */
2727
/* */
2828
/* tx_api.h PORTABLE C */
29-
/* 6.1.5 */
29+
/* 6.1.6 */
3030
/* AUTHOR */
3131
/* */
3232
/* William E. Lamie, Microsoft Corporation */
@@ -66,6 +66,9 @@
6666
/* add option to remove FileX */
6767
/* pointer, */
6868
/* resulting in version 6.1.5 */
69+
/* 04-02-2021 Scott Larson Modified comment(s), and */
70+
/* update patch number, */
71+
/* resulting in version 6.1.6 */
6972
/* */
7073
/**************************************************************************/
7174

@@ -98,7 +101,7 @@ extern "C" {
98101
#define AZURE_RTOS_THREADX
99102
#define THREADX_MAJOR_VERSION 6
100103
#define THREADX_MINOR_VERSION 1
101-
#define THREADX_PATCH_VERSION 5
104+
#define THREADX_PATCH_VERSION 6
102105

103106
/* Define the following symbol for backward compatibility */
104107
#define EL_PRODUCT_THREADX

common/src/tx_mutex_priority_change.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/* FUNCTION RELEASE */
3636
/* */
3737
/* _tx_mutex_priority_change PORTABLE C */
38-
/* 6.1 */
38+
/* 6.1.6 */
3939
/* AUTHOR */
4040
/* */
4141
/* William E. Lamie, Microsoft Corporation */
@@ -70,14 +70,18 @@
7070
/* */
7171
/* DATE NAME DESCRIPTION */
7272
/* */
73-
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
74-
/* 09-30-2020 William E. Lamie Modified comment(s), and */
73+
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
74+
/* 09-30-2020 William E. Lamie Modified comment(s), and */
7575
/* change thread state from */
7676
/* TX_SUSPENDED to */
7777
/* TX_PRIORITY_CHANGE before */
7878
/* calling */
7979
/* _tx_thread_system_suspend, */
8080
/* resulting in version 6.1 */
81+
/* 04-02-2021 Scott Larson Modified comments, fixed */
82+
/* mapping current thread's */
83+
/* priority rather than next, */
84+
/* resulting in version 6.1.6 */
8185
/* */
8286
/**************************************************************************/
8387
VOID _tx_mutex_priority_change(TX_THREAD *thread_ptr, UINT new_priority)
@@ -308,15 +312,15 @@ UINT map_index;
308312
#if TX_MAX_PRIORITIES > 32
309313

310314
/* Calculate the index into the bit map array. */
311-
map_index = (next_execute_ptr -> tx_thread_priority)/ ((UINT) 32);
315+
map_index = (thread_ptr -> tx_thread_priority)/ ((UINT) 32);
312316

313317
/* Set the active bit to remember that the preempt map has something set. */
314-
TX_DIV32_BIT_SET(next_execute_ptr -> tx_thread_priority, priority_bit)
318+
TX_DIV32_BIT_SET(thread_ptr -> tx_thread_priority, priority_bit)
315319
_tx_thread_preempted_map_active = _tx_thread_preempted_map_active | priority_bit;
316320
#endif
317321

318322
/* Remember that this thread was preempted by a thread above the thread's threshold. */
319-
TX_MOD32_BIT_SET(next_execute_ptr -> tx_thread_priority, priority_bit)
323+
TX_MOD32_BIT_SET(thread_ptr -> tx_thread_priority, priority_bit)
320324
_tx_thread_preempted_maps[MAP_INDEX] = _tx_thread_preempted_maps[MAP_INDEX] | priority_bit;
321325
}
322326
#endif

0 commit comments

Comments
 (0)