亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tx_bpd.c

?? ThreadX優秀的硬實時操作系統.This Express Start Guide is designed to help you install and use ThreadX for the
?? C
字號:
/**************************************************************************/ 
/*                                                                        */ 
/*            Copyright (c) 1996-2000 by Express Logic Inc.               */ 
/*                                                                        */ 
/*  This software is copyrighted by and is the sole property of Express   */ 
/*  Logic, Inc.  All rights, title, ownership, or other interests         */ 
/*  in the software remain the property of Express Logic, Inc.  This      */ 
/*  software may only be used in accordance with the corresponding        */ 
/*  license agreement.  Any unauthorized use, duplication, transmission,  */ 
/*  distribution, or disclosure of this software is expressly forbidden.  */ 
/*                                                                        */
/*  This Copyright notice may not be removed or modified without prior    */ 
/*  written consent of Express Logic, Inc.                                */ 
/*                                                                        */ 
/*  Express Logic, Inc. reserves the right to modify this software        */ 
/*  without notice.                                                       */ 
/*                                                                        */ 
/*  Express Logic, Inc.                                                   */
/*  11440 West Bernardo Court               info@expresslogic.com         */
/*  Suite 366                               http://www.expresslogic.com   */
/*  San Diego, CA  92127                                                  */
/*                                                                        */
/**************************************************************************/


/**************************************************************************/
/**************************************************************************/
/**                                                                       */ 
/** ThreadX Component                                                     */ 
/**                                                                       */
/**   Block Pool (BLO)                                                    */
/**                                                                       */
/**************************************************************************/
/**************************************************************************/

#define TX_SOURCE_CODE


/* Include necessary system files.  */

#include    "tx_api.h"
#include    "tx_thr.h"
#include    "tx_tim.h"
#include    "tx_blo.h"


/**************************************************************************/ 
/*                                                                        */ 
/*  FUNCTION                                               RELEASE        */ 
/*                                                                        */ 
/*    _tx_block_pool_delete                               PORTABLE C      */ 
/*                                                           3.0f         */ 
/*  AUTHOR                                                                */ 
/*                                                                        */ 
/*    William E. Lamie, Express Logic, Inc.                               */ 
/*                                                                        */ 
/*  DESCRIPTION                                                           */ 
/*                                                                        */ 
/*    This function deletes the specified block pool.  All threads        */ 
/*    suspended on the block pool are resumed with the TX_DELETED status  */ 
/*    code.                                                               */ 
/*                                                                        */ 
/*  INPUT                                                                 */ 
/*                                                                        */ 
/*    pool_ptr                          Pointer to pool control block     */ 
/*                                                                        */ 
/*  OUTPUT                                                                */ 
/*                                                                        */ 
/*    TX_SUCCESS                        Successful completion status      */ 
/*                                                                        */ 
/*  CALLS                                                                 */ 
/*                                                                        */ 
/*    _tx_timer_deactivate              Deactivate timer routine          */ 
/*    _tx_thread_resume                 Resume thread service             */ 
/*                                                                        */ 
/*  CALLED BY                                                             */ 
/*                                                                        */ 
/*    Application Code                                                    */ 
/*                                                                        */ 
/*  RELEASE HISTORY                                                       */ 
/*                                                                        */ 
/*    DATE              NAME                      DESCRIPTION             */ 
/*                                                                        */ 
/*  12-31-1996     William E. Lamie         Initial Version 3.0           */ 
/*  11-11-1997     William E. Lamie         Modified comment(s),          */ 
/*                                            resulting in version 3.0b.  */ 
/*  01-01-1999     William E. Lamie         Modified comment(s),          */ 
/*                                            resulting in version 3.0e.  */ 
/*  11-01-1999     William E. Lamie         Modified comment(s),          */ 
/*                                            added logic to track events,*/ 
/*                                            resulting in version 3.0f.  */ 
/*                                                                        */ 
/**************************************************************************/ 
UINT    _tx_block_pool_delete(TX_BLOCK_POOL *pool_ptr)
{

TX_INTERRUPT_SAVE_AREA

TX_THREAD       *thread_ptr;                /* Working thread pointer  */


    /* Disable interrupts to remove the block pool from the created list.  */
    TX_DISABLE

    /* Log this kernel call.  */
    TX_EL_BLOCK_POOL_DELETE_INSERT

    /* Decrement the number of block pools created.  */
    _tx_block_pool_created_count--;

    /* Clear the block pool ID to make it invalid.  */
    pool_ptr -> tx_block_pool_id =  0;

    /* See if the block pool is the only one on the list.  */
    if (pool_ptr == pool_ptr -> tx_block_pool_created_next)
    {

        /* Only created block pool, just set the created list to NULL.  */
        _tx_block_pool_created_ptr =  TX_NULL;
    }
    else
    {

        /* Link-up the neighbors.  */
        (pool_ptr -> tx_block_pool_created_next) -> tx_block_pool_created_previous =
                                            pool_ptr -> tx_block_pool_created_previous;
        (pool_ptr -> tx_block_pool_created_previous) -> tx_block_pool_created_next =
                                            pool_ptr -> tx_block_pool_created_next;

        /* See if we have to update the created list head pointer.  */
        if (_tx_block_pool_created_ptr == pool_ptr)
            
            /* Yes, move the head pointer to the next link. */
            _tx_block_pool_created_ptr =  pool_ptr -> tx_block_pool_created_next; 
    }

    /* Temporarily disable preemption.  */
    _tx_thread_preempt_disable++;

    /* Restore interrupts.  */
    TX_RESTORE

    /* Walk through the block pool list to resume any and all threads suspended
       on this block pool.  */
    thread_ptr =  pool_ptr -> tx_block_pool_suspension_list;    
    while (pool_ptr -> tx_block_pool_suspended_count)
    {
        /* Lockout interrupts.  */
        TX_DISABLE

        /* Clear the cleanup pointer, this prevents the timeout from doing 
           anything.  */
        thread_ptr -> tx_suspend_cleanup =  TX_NULL;

        /* Temporarily disable preemption again.  */
        _tx_thread_preempt_disable++;

        /* Restore interrupts.  */
        TX_RESTORE
    
        /* Yes, deactivate the thread's timer just in case.  */
        _tx_timer_deactivate(&(thread_ptr -> tx_thread_timer));

        /* Clear the remaining time to ensure timer doesn't get activated.  */
        thread_ptr -> tx_thread_timer.tx_remaining_ticks =  0;

        /* Set the return status in the thread to TX_DELETED.  */
        thread_ptr -> tx_suspend_status =  TX_DELETED;

        /* Move the thread pointer ahead.  */
        thread_ptr =  thread_ptr -> tx_suspended_next;

        /* Resume the thread.  */
        _tx_thread_resume(thread_ptr -> tx_suspended_previous);

        /* Decrease the suspended count.  */
        pool_ptr -> tx_block_pool_suspended_count--;
    }

    /* Disable interrupts.  */
    TX_DISABLE

    /* Release previous preempt disable.  */
    _tx_thread_preempt_disable--;

    /* Restore interrupts.  */
    TX_RESTORE

    /* Check for preemption.  */
    if (_tx_thread_current_ptr != _tx_thread_execute_ptr)

        /* Transfer control to system.  */
        _tx_thread_system_return();

    /* Return TX_SUCCESS.  */
    return(TX_SUCCESS);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91片黄在线观看| 轻轻草成人在线| 99视频一区二区| 国产精品私房写真福利视频| 国产传媒欧美日韩成人| 国产精品欧美综合在线| 99久久综合99久久综合网站| 国产精品久久久久久久久图文区 | 日韩三级.com| 青青草视频一区| 久久综合九色综合欧美亚洲| 国产精品一区二区在线播放| 欧美激情一区二区三区四区| 91丨九色丨国产丨porny| 亚洲自拍偷拍av| 精品捆绑美女sm三区| 国产成人午夜电影网| 亚洲欧美另类图片小说| 91精品黄色片免费大全| 国产激情一区二区三区四区| 国产午夜精品久久久久久免费视| 一区二区三区**美女毛片| 欧美亚洲另类激情小说| 免费人成精品欧美精品| 国产欧美日韩精品在线| 欧美亚日韩国产aⅴ精品中极品| 久久久久久亚洲综合| 成人激情开心网| 免费一级片91| 国产精品福利一区| 欧美一区二区视频在线观看2022| 国产精品初高中害羞小美女文| 久久精品噜噜噜成人av农村| 国产精品麻豆一区二区| 欧美夫妻性生活| 成人综合在线观看| 视频一区二区三区中文字幕| 国产日韩欧美一区二区三区综合| 美女看a上一区| 亚洲视频一区在线观看| 精品伦理精品一区| 在线亚洲欧美专区二区| 国产成人鲁色资源国产91色综| 精品福利av导航| 91官网在线观看| 福利一区在线观看| 蜜臀久久99精品久久久久久9| 欧美男女性生活在线直播观看| 一级精品视频在线观看宜春院| 91丨九色丨国产丨porny| 激情文学综合丁香| 日日噜噜夜夜狠狠视频欧美人| 欧美挠脚心视频网站| 99久久国产综合精品色伊| 蜜桃免费网站一区二区三区| 亚洲欧美日韩小说| 欧美激情艳妇裸体舞| 精品国一区二区三区| 欧美精品第1页| 色狠狠一区二区三区香蕉| 成人性生交大片免费看中文网站| 亚洲人精品午夜| 国产色综合久久| 久久伊99综合婷婷久久伊| 91精品国产综合久久婷婷香蕉| 蜜桃一区二区三区在线| 天天做天天摸天天爽国产一区| 欧美一区中文字幕| 在线观看一区不卡| 91色.com| 色网站国产精品| 日本精品视频一区二区| 91视频一区二区三区| 99热这里都是精品| av在线不卡免费看| av在线综合网| 91蜜桃视频在线| 在线看不卡av| 欧美老肥妇做.爰bbww| 欧美日韩国产综合视频在线观看| 国产精品一区二区在线看| 国内精品国产成人国产三级粉色 | 在线区一区二视频| 色女孩综合影院| 色婷婷av一区二区三区gif| 91香蕉视频在线| 在线视频你懂得一区二区三区| 精品一区二区综合| 理论片日本一区| 国产麻豆精品在线观看| 国产伦理精品不卡| 波多野结衣中文字幕一区二区三区| 午夜精品一区二区三区免费视频 | 国产盗摄一区二区| 成人黄色免费短视频| 91天堂素人约啪| 色综合久久中文字幕| 欧美日韩国产首页| 欧美mv日韩mv亚洲| 中文字幕av不卡| 亚洲一区在线播放| 理论片日本一区| 国产成人精品免费一区二区| 色综合天天综合网天天看片| 欧美亚洲国产怡红院影院| 日韩欧美国产午夜精品| 国产欧美日韩三级| 亚洲成人一区二区| 国内精品伊人久久久久影院对白| 天天影视色香欲综合网老头| 激情文学综合网| 91极品视觉盛宴| 久久只精品国产| 亚洲欧美日韩国产手机在线| 蜜臀av性久久久久蜜臀aⅴ| 国产成人在线视频网址| 91国产免费看| 久久嫩草精品久久久久| 亚洲女与黑人做爰| 久久超碰97中文字幕| 色综合久久久久综合| 日韩美女一区二区三区四区| 中文字幕日本不卡| 秋霞影院一区二区| aaa国产一区| 26uuu色噜噜精品一区| 亚洲永久免费视频| 成人性生交大片免费看在线播放 | 日韩高清不卡一区二区| 成人黄色小视频| 7777精品伊人久久久大香线蕉最新版 | 欧美一级黄色大片| 国产精品免费视频网站| 毛片不卡一区二区| 欧美亚洲愉拍一区二区| 国产精品午夜在线观看| 日产国产高清一区二区三区| 91猫先生在线| 国产精品入口麻豆原神| 久久er99热精品一区二区| 欧美性大战xxxxx久久久| 中文字幕精品一区二区精品绿巨人 | 久久99日本精品| 精品视频资源站| 自拍偷拍亚洲欧美日韩| 国产美女精品人人做人人爽| 欧美一级黄色片| 午夜精品久久久久久不卡8050| 视频一区中文字幕| 在线观看日韩电影| 国产精品久久久久久久久免费桃花 | av男人天堂一区| 国产午夜精品久久久久久免费视 | 中文字幕色av一区二区三区| 国内成人自拍视频| 精品日韩在线一区| 蜜桃视频在线一区| 日韩一区二区在线观看视频播放| 精品国产91洋老外米糕| 奇米一区二区三区av| 欧美日韩国产免费一区二区| 亚洲尤物在线视频观看| 欧美在线观看一区| 一二三区精品福利视频| 色噜噜狠狠色综合欧洲selulu| 欧美日韩电影一区| 亚洲国产日韩a在线播放| 91高清视频免费看| 亚洲一区在线观看免费| 在线视频欧美精品| 夜夜嗨av一区二区三区四季av | 欧美一区二区三区啪啪| 五月激情六月综合| 69堂成人精品免费视频| 亚洲第一精品在线| 欧美久久久久久久久中文字幕| 久久精品男人的天堂| 高清久久久久久| 国产精品久久久久久久久果冻传媒| 亚洲国产精品久久不卡毛片 | 国产三级一区二区三区| 国产91综合网| 国产精品成人午夜| 色综合天天综合在线视频| 一区二区三区中文字幕| 欧美在线免费视屏| 免费久久99精品国产| 欧美大片顶级少妇| 国产 日韩 欧美大片| 亚洲婷婷国产精品电影人久久| 久88久久88久久久| 欧美国产日韩亚洲一区| 色婷婷精品久久二区二区蜜臂av| 精品第一国产综合精品aⅴ| 国产精品99久久久久久久女警 | 制服丝袜一区二区三区| 久久99国产精品久久99| 国产精品人成在线观看免费| 在线免费观看成人短视频| 老司机精品视频导航|