summaryrefslogtreecommitdiff
path: root/common/src/tx_mutex_performance_info_get.c
diff options
context:
space:
mode:
authorYuxin Zhou <[email protected]>2021-10-14 00:51:26 +0000
committerYuxin Zhou <[email protected]>2021-10-14 00:51:26 +0000
commit1af8404c54f9c8d3caa2ac3523c2a5f014aecb1c (patch)
tree93e4f4d64ec8c21c01b77f19b8e7326e85227e3d /common/src/tx_mutex_performance_info_get.c
parent215df45d4b59d4ce8606a88f566d1d426e64a84c (diff)
Release 6.1.9
Diffstat (limited to 'common/src/tx_mutex_performance_info_get.c')
-rw-r--r--common/src/tx_mutex_performance_info_get.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/common/src/tx_mutex_performance_info_get.c b/common/src/tx_mutex_performance_info_get.c
index b154f15e..7bd0512e 100644
--- a/common/src/tx_mutex_performance_info_get.c
+++ b/common/src/tx_mutex_performance_info_get.c
@@ -99,15 +99,15 @@ UINT status;
/* Determine if this is a legal request. */
if (mutex_ptr == TX_NULL)
{
-
+
/* Mutex pointer is illegal, return error. */
status = TX_PTR_ERROR;
}
-
+
/* Determine if the mutex ID is invalid. */
else if (mutex_ptr -> tx_mutex_id != TX_MUTEX_ID)
{
-
+
/* Mutex pointer is illegal, return error. */
status = TX_PTR_ERROR;
}
@@ -129,45 +129,45 @@ UINT status;
/* Retrieve the number of puts on this mutex. */
if (puts != TX_NULL)
{
-
+
*puts = mutex_ptr -> tx_mutex_performance_put_count;
}
-
+
/* Retrieve the number of gets on this mutex. */
if (gets != TX_NULL)
{
-
+
*gets = mutex_ptr -> tx_mutex_performance_get_count;
}
-
+
/* Retrieve the number of suspensions on this mutex. */
if (suspensions != TX_NULL)
{
-
+
*suspensions = mutex_ptr -> tx_mutex_performance_suspension_count;
}
-
+
/* Retrieve the number of timeouts on this mutex. */
if (timeouts != TX_NULL)
{
-
+
*timeouts = mutex_ptr -> tx_mutex_performance_timeout_count;
}
-
+
/* Retrieve the number of priority inversions on this mutex. */
if (inversions != TX_NULL)
{
-
+
*inversions = mutex_ptr -> tx_mutex_performance_priority_inversion_count;
}
-
+
/* Retrieve the number of priority inheritances on this mutex. */
if (inheritances != TX_NULL)
{
-
+
*inheritances = mutex_ptr -> tx_mutex_performance__priority_inheritance_count;
}
-
+
/* Restore interrupts. */
TX_RESTORE
}
@@ -225,7 +225,7 @@ UINT status;
status = TX_FEATURE_NOT_ENABLED;
}
#endif
-
+
/* Return completion status. */
return(status);
}