Release 6.1.9
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
|
||||
/**************************************************************************/
|
||||
/**************************************************************************/
|
||||
/** */
|
||||
/** ThreadX Component */
|
||||
/** */
|
||||
/** ThreadX Component */
|
||||
/** */
|
||||
/** Block Pool */
|
||||
/** */
|
||||
@@ -31,54 +31,56 @@
|
||||
#include "tx_block_pool.h"
|
||||
|
||||
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* FUNCTION RELEASE */
|
||||
/* */
|
||||
/* _txe_block_allocate PORTABLE C */
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* FUNCTION RELEASE */
|
||||
/* */
|
||||
/* _txe_block_allocate PORTABLE C */
|
||||
/* 6.1 */
|
||||
/* AUTHOR */
|
||||
/* */
|
||||
/* William E. Lamie, Microsoft Corporation */
|
||||
/* */
|
||||
/* DESCRIPTION */
|
||||
/* */
|
||||
/* This function checks for errors in the allocate block memory */
|
||||
/* function call. */
|
||||
/* */
|
||||
/* INPUT */
|
||||
/* */
|
||||
/* pool_ptr Pointer to pool control block */
|
||||
/* block_ptr Pointer to place allocated block */
|
||||
/* */
|
||||
/* This function checks for errors in the allocate block memory */
|
||||
/* function call. */
|
||||
/* */
|
||||
/* INPUT */
|
||||
/* */
|
||||
/* pool_ptr Pointer to pool control block */
|
||||
/* block_ptr Pointer to place allocated block */
|
||||
/* pointer */
|
||||
/* wait_option Suspension option */
|
||||
/* */
|
||||
/* OUTPUT */
|
||||
/* */
|
||||
/* TX_POOL_ERROR Invalid pool pointer */
|
||||
/* TX_PTR_ERROR Invalid destination pointer */
|
||||
/* TX_WAIT_ERROR Invalid wait option */
|
||||
/* status Actual Completion status */
|
||||
/* */
|
||||
/* CALLS */
|
||||
/* */
|
||||
/* _tx_block_allocate Actual block allocate function */
|
||||
/* */
|
||||
/* CALLED BY */
|
||||
/* */
|
||||
/* Application Code */
|
||||
/* */
|
||||
/* RELEASE HISTORY */
|
||||
/* */
|
||||
/* wait_option Suspension option */
|
||||
/* */
|
||||
/* OUTPUT */
|
||||
/* */
|
||||
/* TX_POOL_ERROR Invalid pool pointer */
|
||||
/* TX_PTR_ERROR Invalid destination pointer */
|
||||
/* TX_WAIT_ERROR Invalid wait option */
|
||||
/* status Actual Completion status */
|
||||
/* */
|
||||
/* CALLS */
|
||||
/* */
|
||||
/* _tx_block_allocate Actual block allocate 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_block_allocate(TX_BLOCK_POOL *pool_ptr, VOID **block_ptr, ULONG wait_option)
|
||||
{
|
||||
|
||||
UINT status;
|
||||
UINT status;
|
||||
|
||||
#ifndef TX_TIMER_PROCESS_IN_ISR
|
||||
|
||||
@@ -89,7 +91,7 @@ TX_THREAD *current_thread;
|
||||
status = TX_SUCCESS;
|
||||
|
||||
/* Check for an invalid pool pointer. */
|
||||
if (pool_ptr == TX_NULL)
|
||||
if (pool_ptr == TX_NULL)
|
||||
{
|
||||
|
||||
/* Pool pointer is invalid, return appropriate error code. */
|
||||
@@ -111,10 +113,10 @@ TX_THREAD *current_thread;
|
||||
/* Null destination pointer, return appropriate error. */
|
||||
status = TX_PTR_ERROR;
|
||||
}
|
||||
else
|
||||
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)
|
||||
{
|
||||
@@ -126,7 +128,7 @@ 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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user