summaryrefslogtreecommitdiff
path: root/common/src/tx_mutex_delete.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_delete.c
parent215df45d4b59d4ce8606a88f566d1d426e64a84c (diff)
Release 6.1.9
Diffstat (limited to 'common/src/tx_mutex_delete.c')
-rw-r--r--common/src/tx_mutex_delete.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/common/src/tx_mutex_delete.c b/common/src/tx_mutex_delete.c
index 7c3becc0..76a4441f 100644
--- a/common/src/tx_mutex_delete.c
+++ b/common/src/tx_mutex_delete.c
@@ -110,7 +110,7 @@ UINT status;
/* Decrement the created count. */
_tx_mutex_created_count--;
-
+
/* See if the mutex is the only one on the list. */
if (_tx_mutex_created_count == TX_EMPTY)
{
@@ -130,7 +130,7 @@ UINT status;
/* See if we have to update the created list head pointer. */
if (_tx_mutex_created_ptr == mutex_ptr)
{
-
+
/* Yes, move the head pointer to the next link. */
_tx_mutex_created_ptr = next_mutex;
}
@@ -156,7 +156,7 @@ UINT status;
{
/* Yes, remove this mutex from the owned list. */
-
+
/* Set the ownership count to 1. */
mutex_ptr -> tx_mutex_ownership_count = ((UINT) 1);
@@ -184,14 +184,14 @@ UINT status;
on this mutex. */
while (suspended_count != ((ULONG) 0))
{
-
+
/* Decrement the suspension count. */
suspended_count--;
-
+
/* Lockout interrupts. */
TX_DISABLE
- /* Clear the cleanup pointer, this prevents the timeout from doing
+ /* Clear the cleanup pointer, this prevents the timeout from doing
anything. */
thread_ptr -> tx_thread_suspend_cleanup = TX_NULL;
@@ -215,7 +215,7 @@ UINT status;
/* Restore interrupts. */
TX_RESTORE
-
+
/* Resume the thread. */
_tx_thread_system_resume(thread_ptr);
#endif