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

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

?? tx_tpch.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                                                     */ 
/**                                                                       */
/**   Thread Control                                                      */
/**                                                                       */
/**************************************************************************/
/**************************************************************************/

#define TX_SOURCE_CODE


/* Include necessary system files.  */

#include    "tx_api.h"
#include    "tx_thr.h"


/**************************************************************************/ 
/*                                                                        */ 
/*  FUNCTION                                               RELEASE        */ 
/*                                                                        */ 
/*    _tx_thread_preemption_change                        PORTABLE C      */ 
/*                                                           3.0f         */ 
/*  AUTHOR                                                                */ 
/*                                                                        */ 
/*    William E. Lamie, Express Logic, Inc.                               */ 
/*                                                                        */ 
/*  DESCRIPTION                                                           */ 
/*                                                                        */ 
/*    This function processes preemption threshold change requests.  The  */ 
/*    previous preemption is returned to the caller.  If the new request  */ 
/*    allows a higher priority thread to execute, preemption takes place  */ 
/*    inside of this function.                                            */ 
/*                                                                        */ 
/*  INPUT                                                                 */ 
/*                                                                        */ 
/*    thread_ptr                            Pointer to thread             */ 
/*    new_threshold                         New preemption threshold      */ 
/*    old_threshold                         Old preemption threshold      */ 
/*                                                                        */ 
/*  OUTPUT                                                                */ 
/*                                                                        */ 
/*    status                                Service return status         */ 
/*                                                                        */ 
/*  CALLS                                                                 */ 
/*                                                                        */ 
/*    _tx_thread_system_return              Return to system              */ 
/*                                                                        */ 
/*  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.  */ 
/*  03-01-1998     William E. Lamie         Added logic to clear this     */ 
/*                                            priority of the preempted   */ 
/*                                            bit map if the threshold is */ 
/*                                            lowered to the priority of  */ 
/*                                            the specified thread,       */ 
/*                                            resulting in version 3.0d.  */ 
/*  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_thread_preemption_change(TX_THREAD *thread_ptr, UINT new_threshold,
                    UINT *old_threshold)
{

TX_INTERRUPT_SAVE_AREA
UINT    status;                         /* Return status            */


    /* Lockout interrupts while the thread is being resumed.  */
    TX_DISABLE

    /* Determine if the preemption threshold is valid.  */
    if (new_threshold <= thread_ptr -> tx_priority)
    {

        /* Legal new preemption threshold. */

        /* Log this kernel call.  */
        TX_EL_THREAD_PREEMPTION_CHANGE_INSERT

        /* Determine if the new threshold is the same as the
           priority.  */
        if (thread_ptr -> tx_priority == new_threshold)
        {

            /* Determine if this thread is at the head of the list.  */
            if (_tx_thread_priority_list[thread_ptr -> tx_priority] == thread_ptr)
            {

                /* Yes, this thread is at the front of the list.  Make sure
                   the preempted bit is cleared for this thread.  */
                _tx_thread_preempted_map =  
                                _tx_thread_preempted_map & ~(thread_ptr -> tx_priority_bit);
            }
        }

        /* Save the current preemption threshold.   */
        *old_threshold =  thread_ptr -> tx_preempt_threshold;

        /* Setup the new threshold.  */
        thread_ptr -> tx_preempt_threshold =  new_threshold;

        /* See if preemption needs to take place.  */
        if ((_tx_thread_execute_ptr == thread_ptr) &&
                (_tx_thread_highest_priority < thread_ptr -> tx_priority) &&
                (_tx_thread_highest_priority < new_threshold))
        {

            /* Preemption needs to take place.  */

            /* Setup the highest priority thread to execute.  */
            _tx_thread_execute_ptr =  _tx_thread_priority_list[_tx_thread_highest_priority];

            /* Restore interrupts.  */
            TX_RESTORE

            /* Transfer control to the system to execute the higher priority
               thread, if preemption is enabled.  */
            if (!_tx_thread_preempt_disable)

                /* Transfer control to system.  */
                _tx_thread_system_return();
            
            /* Disable interrupts again.  */
            TX_DISABLE
        }

        /* Set status to success.  */
        status =  TX_SUCCESS;
    }
    else

        /* Invalid preemption threshold.  */
        status =  TX_THRESH_ERROR;

    /* Restore interrupts.  */
    TX_RESTORE

    /* Return completion status.  */
    return(status);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
黄色精品一二区| 91久久国产综合久久| 北岛玲一区二区三区四区| 在线观看免费一区| 久久精品亚洲精品国产欧美kt∨ | 久久久久久99久久久精品网站| 国产精品嫩草久久久久| 日本亚洲三级在线| 色婷婷精品大视频在线蜜桃视频| 欧美mv和日韩mv国产网站| 亚洲男人的天堂在线aⅴ视频| 国产真实乱偷精品视频免| 欧美三片在线视频观看| 中文字幕在线一区二区三区| 久久精品国产一区二区| 欧美日韩国产色站一区二区三区| 国产精品久久久久久亚洲伦 | 欧美激情中文不卡| 久久国产综合精品| 欧美午夜精品免费| 亚洲三级免费观看| 成人小视频在线观看| 精品国产电影一区二区| 日本中文字幕一区| 欧美精品国产精品| 一区二区三区国产| 91社区在线播放| 国产精品久久久久影院老司 | 精品久久一区二区三区| 爽好久久久欧美精品| 精品视频资源站| 亚洲一区二区三区三| 色综合天天性综合| 亚洲欧洲制服丝袜| 色综合久久中文综合久久97| 中文字幕免费不卡在线| 成人免费看片app下载| 久久精品人人做人人爽97 | 亚洲人成人一区二区在线观看| 成人午夜在线免费| 中文字幕一区二区在线播放| 粉嫩av亚洲一区二区图片| 国产日韩精品视频一区| 高清免费成人av| 国产精品免费人成网站| 91亚洲永久精品| 亚洲精品乱码久久久久久| 在线观看国产精品网站| 亚洲国产精品一区二区尤物区| 精品污污网站免费看| 日韩电影在线观看电影| 日韩三级视频在线看| 国产一区不卡视频| 国产精品欧美极品| 欧美日韩在线播放一区| 青青草97国产精品免费观看| 日韩视频在线观看一区二区| 韩国av一区二区三区在线观看| 国产女同性恋一区二区| 91色porny蝌蚪| 日韩福利视频网| 26uuu国产一区二区三区| 成人午夜精品在线| 亚洲高清不卡在线观看| 精品日韩在线一区| 97精品国产露脸对白| 亚洲一区二区欧美| 精品免费国产一区二区三区四区| 国产在线精品一区二区三区不卡 | 午夜一区二区三区视频| 日韩一区二区中文字幕| 成人国产免费视频| 视频一区二区中文字幕| 久久久国产精华| 欧美三日本三级三级在线播放| 久久精品国产精品亚洲综合| 中文字幕精品一区二区精品绿巨人| 色就色 综合激情| 另类小说图片综合网| 亚洲欧洲综合另类| 精品国产成人在线影院| 在线免费观看一区| 国产白丝精品91爽爽久久| 亚洲一区二区三区激情| 中文字幕乱码日本亚洲一区二区| 欧美日韩dvd在线观看| 国产成人自拍高清视频在线免费播放| 亚洲精品成人精品456| 久久免费视频色| 337p亚洲精品色噜噜噜| 91美女福利视频| 国产成人夜色高潮福利影视| 日韩成人av影视| 一区二区三区四区乱视频| 国产女人18水真多18精品一级做| 91麻豆精品国产综合久久久久久| av一区二区久久| 国产一区二区三区不卡在线观看| 天天综合色天天综合| 亚洲免费在线电影| 亚洲国产精品二十页| 精品日本一线二线三线不卡| 欧美肥妇毛茸茸| 欧美性猛交一区二区三区精品 | 久久精品网站免费观看| 欧美一区二区三区喷汁尤物| 色综合久久久久| av亚洲精华国产精华精| 国产成人久久精品77777最新版本| 日本女人一区二区三区| 亚洲一区二区三区国产| 一区二区视频在线| 日韩理论片在线| 亚洲欧洲无码一区二区三区| 国产欧美精品一区二区色综合| 久久久噜噜噜久久人人看| 日韩视频一区二区| 日韩欧美一区二区免费| 日韩一区二区精品| 日韩欧美国产一二三区| 日韩欧美一级片| 精品国产乱码久久久久久图片 | 成人欧美一区二区三区小说| 国产精品久久久久久久久免费丝袜| 久久亚洲私人国产精品va媚药| 欧美精品一区二区三区久久久| 精品国产免费一区二区三区四区| 欧美成人福利视频| 精品国产一区a| 国产亚洲精品7777| 国产精品美女久久久久高潮| 国产精品久久久久影院色老大| 一区在线播放视频| 一区二区三区四区乱视频| 亚洲国产乱码最新视频| 奇米在线7777在线精品 | 日韩在线一二三区| 天天操天天色综合| 麻豆久久一区二区| 国产剧情一区二区三区| av激情综合网| 在线观看视频一区二区欧美日韩| 欧美巨大另类极品videosbest| 欧美电影一区二区| 久久影院电视剧免费观看| 中文字幕在线不卡视频| 亚洲资源中文字幕| 久久不见久久见中文字幕免费| 国产精品99精品久久免费| 一道本成人在线| 欧美一区二区三区影视| 国产日韩欧美一区二区三区乱码| 最新欧美精品一区二区三区| 日韩激情视频网站| 国产成人免费视频网站| 欧美在线观看视频一区二区三区| 91麻豆精品91久久久久同性| 久久精品夜夜夜夜久久| 亚洲成人久久影院| 福利电影一区二区| 欧美丝袜自拍制服另类| 久久久久亚洲蜜桃| 亚洲成人av中文| 成人毛片老司机大片| 欧美高清hd18日本| 国产精品久久精品日日| 免费视频一区二区| 97超碰欧美中文字幕| 欧美大白屁股肥臀xxxxxx| 亚洲图片你懂的| 国产麻豆9l精品三级站| 欧美日韩国产另类一区| 国产精品久久久久久久第一福利| 青青草视频一区| 色哦色哦哦色天天综合| 国产午夜精品福利| 日韩不卡免费视频| 欧美伊人久久久久久午夜久久久久| 国产亚洲制服色| 麻豆精品新av中文字幕| 欧美午夜影院一区| 亚洲欧美日韩在线播放| 国产激情一区二区三区四区| 欧美一区二区观看视频| 午夜影视日本亚洲欧洲精品| 91亚洲国产成人精品一区二区三 | 中文字幕av不卡| 韩国女主播成人在线观看| 51午夜精品国产| 偷拍一区二区三区四区| 91日韩在线专区| 国产精品看片你懂得| 国产经典欧美精品| 久久精品夜色噜噜亚洲aⅴ| 麻豆传媒一区二区三区| 欧美一区二区啪啪| 午夜电影网一区| 欧美日韩国产123区| 亚洲夂夂婷婷色拍ww47| 欧美做爰猛烈大尺度电影无法无天|