summaryrefslogtreecommitdiff
path: root/common_smp/src/txe_queue_front_send.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_smp/src/txe_queue_front_send.c
parent215df45d4b59d4ce8606a88f566d1d426e64a84c (diff)
Release 6.1.9
Diffstat (limited to 'common_smp/src/txe_queue_front_send.c')
-rw-r--r--common_smp/src/txe_queue_front_send.c78
1 files changed, 40 insertions, 38 deletions
diff --git a/common_smp/src/txe_queue_front_send.c b/common_smp/src/txe_queue_front_send.c
index 2a4332d2..ae38162f 100644
--- a/common_smp/src/txe_queue_front_send.c
+++ b/common_smp/src/txe_queue_front_send.c
@@ -12,8 +12,8 @@
/**************************************************************************/
/**************************************************************************/
-/** */
-/** ThreadX Component */
+/** */
+/** ThreadX Component */
/** */
/** Queue */
/** */
@@ -31,52 +31,54 @@
#include "tx_queue.h"
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_queue_front_send PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_queue_front_send PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* William E. Lamie, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This function checks for errors in the queue send function call. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block */
-/* source_ptr Pointer to message source */
-/* wait_option Suspension option */
-/* */
-/* OUTPUT */
-/* */
-/* TX_QUEUE_ERROR Invalid queue pointer */
-/* TX_PTR_ERROR Invalid source pointer - NULL */
-/* TX_WAIT_ERROR Invalid wait option - non thread */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
-/* _tx_queue_front_send Actual queue send function */
-/* */
-/* CALLED BY */
-/* */
-/* Application Code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* This function checks for errors in the queue send function call. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block */
+/* source_ptr Pointer to message source */
+/* wait_option Suspension option */
+/* */
+/* OUTPUT */
+/* */
+/* TX_QUEUE_ERROR Invalid queue pointer */
+/* TX_PTR_ERROR Invalid source pointer - NULL */
+/* TX_WAIT_ERROR Invalid wait option - non thread */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
+/* _tx_queue_front_send Actual queue send function */
+/* */
+/* CALLED BY */
+/* */
+/* Application Code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 William E. Lamie Initial Version 6.1 */
+/* 05-19-2020 William E. Lamie Initial Version 6.0 */
+/* 09-30-2020 Yuxin Zhou Modified comment(s), */
+/* resulting in version 6.1 */
/* */
/**************************************************************************/
UINT _txe_queue_front_send(TX_QUEUE *queue_ptr, VOID *source_ptr, ULONG wait_option)
{
-UINT status;
+UINT status;
#ifndef TX_TIMER_PROCESS_IN_ISR
TX_THREAD *current_thread;
@@ -112,7 +114,7 @@ TX_THREAD *current_thread;
else
{
- /* Check for a wait option error. Only threads are allowed any form of
+ /* Check for a wait option error. Only threads are allowed any form of
suspension. */
if (wait_option != TX_NO_WAIT)
{
@@ -124,11 +126,11 @@ TX_THREAD *current_thread;
/* A non-thread is trying to suspend, return appropriate error code. */
status = TX_WAIT_ERROR;
}
-
+
#ifndef TX_TIMER_PROCESS_IN_ISR
else
{
-
+
/* Pickup thread pointer. */
TX_THREAD_GET_CURRENT(current_thread)