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

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

?? pt.h

?? IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR IAR
?? H
字號:
/* * Copyright (c) 2004-2005, Swedish Institute of Computer Science. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the Institute nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * This file is part of the uIP TCP/IP stack * * Author: Adam Dunkels <adam@sics.se> * * $Id: pt.h,v 1.2 2006/06/12 08:00:30 adam Exp $ *//** * \addtogroup pt * @{ *//** * \file * Protothreads implementation. * \author * Adam Dunkels <adam@sics.se> * */#ifndef __PT_H__#define __PT_H__#include "lc.h"struct pt {  lc_t lc;};#define PT_WAITING 0#define PT_EXITED  1#define PT_ENDED   2#define PT_YIELDED 3/** * \name Initialization * @{ *//** * Initialize a protothread. * * Initializes a protothread. Initialization must be done prior to * starting to execute the protothread. * * \param pt A pointer to the protothread control structure. * * \sa PT_SPAWN() * * \hideinitializer */#define PT_INIT(pt)   LC_INIT((pt)->lc)/** @} *//** * \name Declaration and definition * @{ *//** * Declaration of a protothread. * * This macro is used to declare a protothread. All protothreads must * be declared with this macro. * * \param name_args The name and arguments of the C function * implementing the protothread. * * \hideinitializer */#define PT_THREAD(name_args) char name_args/** * Declare the start of a protothread inside the C function * implementing the protothread. * * This macro is used to declare the starting point of a * protothread. It should be placed at the start of the function in * which the protothread runs. All C statements above the PT_BEGIN() * invokation will be executed each time the protothread is scheduled. * * \param pt A pointer to the protothread control structure. * * \hideinitializer */#define PT_BEGIN(pt) { char PT_YIELD_FLAG = 1; LC_RESUME((pt)->lc)/** * Declare the end of a protothread. * * This macro is used for declaring that a protothread ends. It must * always be used together with a matching PT_BEGIN() macro. * * \param pt A pointer to the protothread control structure. * * \hideinitializer */#define PT_END(pt) LC_END((pt)->lc); PT_YIELD_FLAG = 0; \                   PT_INIT(pt); return PT_ENDED; }/** @} *//** * \name Blocked wait * @{ *//** * Block and wait until condition is true. * * This macro blocks the protothread until the specified condition is * true. * * \param pt A pointer to the protothread control structure. * \param condition The condition. * * \hideinitializer */#define PT_WAIT_UNTIL(pt, condition)	        \  do {						\    LC_SET((pt)->lc);				\    if(!(condition)) {				\      return PT_WAITING;			\    }						\  } while(0)/** * Block and wait while condition is true. * * This function blocks and waits while condition is true. See * PT_WAIT_UNTIL(). * * \param pt A pointer to the protothread control structure. * \param cond The condition. * * \hideinitializer */#define PT_WAIT_WHILE(pt, cond)  PT_WAIT_UNTIL((pt), !(cond))/** @} *//** * \name Hierarchical protothreads * @{ *//** * Block and wait until a child protothread completes. * * This macro schedules a child protothread. The current protothread * will block until the child protothread completes. * * \note The child protothread must be manually initialized with the * PT_INIT() function before this function is used. * * \param pt A pointer to the protothread control structure. * \param thread The child protothread with arguments * * \sa PT_SPAWN() * * \hideinitializer */#define PT_WAIT_THREAD(pt, thread) PT_WAIT_WHILE((pt), PT_SCHEDULE(thread))/** * Spawn a child protothread and wait until it exits. * * This macro spawns a child protothread and waits until it exits. The * macro can only be used within a protothread. * * \param pt A pointer to the protothread control structure. * \param child A pointer to the child protothread's control structure. * \param thread The child protothread with arguments * * \hideinitializer */#define PT_SPAWN(pt, child, thread)		\  do {						\    PT_INIT((child));				\    PT_WAIT_THREAD((pt), (thread));		\  } while(0)/** @} *//** * \name Exiting and restarting * @{ *//** * Restart the protothread. * * This macro will block and cause the running protothread to restart * its execution at the place of the PT_BEGIN() call. * * \param pt A pointer to the protothread control structure. * * \hideinitializer */#define PT_RESTART(pt)				\  do {						\    PT_INIT(pt);				\    return PT_WAITING;			\  } while(0)/** * Exit the protothread. * * This macro causes the protothread to exit. If the protothread was * spawned by another protothread, the parent protothread will become * unblocked and can continue to run. * * \param pt A pointer to the protothread control structure. * * \hideinitializer */#define PT_EXIT(pt)				\  do {						\    PT_INIT(pt);				\    return PT_EXITED;			\  } while(0)/** @} *//** * \name Calling a protothread * @{ *//** * Schedule a protothread. * * This function shedules a protothread. The return value of the * function is non-zero if the protothread is running or zero if the * protothread has exited. * * \param f The call to the C function implementing the protothread to * be scheduled * * \hideinitializer */#define PT_SCHEDULE(f) ((f) == PT_WAITING)/** @} *//** * \name Yielding from a protothread * @{ *//** * Yield from the current protothread. * * This function will yield the protothread, thereby allowing other * processing to take place in the system. * * \param pt A pointer to the protothread control structure. * * \hideinitializer */#define PT_YIELD(pt)				\  do {						\    PT_YIELD_FLAG = 0;				\    LC_SET((pt)->lc);				\    if(PT_YIELD_FLAG == 0) {			\      return PT_YIELDED;			\    }						\  } while(0)/** * \brief      Yield from the protothread until a condition occurs. * \param pt   A pointer to the protothread control structure. * \param cond The condition. * *             This function will yield the protothread, until the *             specified condition evaluates to true. * * * \hideinitializer */#define PT_YIELD_UNTIL(pt, cond)		\  do {						\    PT_YIELD_FLAG = 0;				\    LC_SET((pt)->lc);				\    if((PT_YIELD_FLAG == 0) || !(cond)) {	\      return PT_YIELDED;			\    }						\  } while(0)/** @} */#endif /* __PT_H__ *//** @} */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩精品免费观看视频 | 欧美成人在线直播| 亚洲在线视频一区| 天堂va蜜桃一区二区三区漫画版 | thepron国产精品| 亚洲第一二三四区| 久久色.com| 亚洲乱码国产乱码精品精小说 | 国产美女视频91| 91在线视频免费观看| 日本成人在线不卡视频| 国产精品欧美经典| 国产亚洲一区二区三区在线观看 | 亚洲黄色片在线观看| 中文字幕综合网| 国产精品久久看| 亚洲精品欧美在线| 五月天一区二区三区| 久久激情五月激情| 国产91丝袜在线播放0| 国产精品一区二区免费不卡 | 久久精品免费在线观看| 欧美国产精品一区| 香蕉加勒比综合久久| 亚洲精品成a人| 欧美一二区视频| 精品久久久久久综合日本欧美 | 国产一区二区三区不卡在线观看| 久草精品在线观看| 91色|porny| 精品免费视频一区二区| 久久久91精品国产一区二区精品| 日韩码欧中文字| 日本女人一区二区三区| 成人激情视频网站| 91精品国产丝袜白色高跟鞋| 国产日产欧产精品推荐色| 一区二区三区蜜桃| 精品亚洲成a人在线观看| 丰满少妇久久久久久久| 在线观看亚洲精品视频| 久久久www成人免费无遮挡大片 | 欧美精品一区二区在线播放| ...av二区三区久久精品| 日韩精品1区2区3区| 国产一区二区三区免费看| 色美美综合视频| 久久久久久久久久久久电影| 亚洲第一成年网| 成人视屏免费看| 欧美乱熟臀69xxxxxx| 国产亚洲精品福利| 另类小说视频一区二区| 在线视频一区二区免费| 中文字幕精品在线不卡| 极品瑜伽女神91| 欧美日韩精品欧美日韩精品| 亚洲欧美日韩系列| 色综合一区二区| 亚洲精品网站在线观看| 国产成人精品免费网站| 精品日韩av一区二区| 日韩中文字幕区一区有砖一区| 色呦呦国产精品| 国产精品毛片高清在线完整版| 国产剧情在线观看一区二区| 精品人在线二区三区| 麻豆久久久久久| 91精品在线一区二区| 午夜精品久久久久久| 欧美日韩视频专区在线播放| 亚洲黄色尤物视频| 日本道免费精品一区二区三区| 国产精品萝li| 91原创在线视频| 亚洲美女电影在线| 91精品1区2区| 午夜精品久久久久久不卡8050| 欧美三级在线看| 丝袜亚洲另类欧美| 欧美二区三区91| 亚洲国产色一区| 欧美精品视频www在线观看 | 国产成人免费视频网站| www激情久久| 国产不卡在线一区| 亚洲男人的天堂在线aⅴ视频| 日本黄色一区二区| 国产精品乱人伦中文| 成人激情综合网站| 国产精品成人一区二区三区夜夜夜| 99在线精品免费| 亚洲日本电影在线| 色爱区综合激月婷婷| 亚洲大片精品永久免费| 日韩欧美区一区二| 国产精品一区二区在线观看不卡| 久久免费美女视频| 91蝌蚪porny| 日本成人在线一区| 中文字幕欧美激情| 欧美午夜电影网| 国产一区二区调教| 亚洲视频一区在线观看| 欧美精品国产精品| 成人av小说网| 日本欧美肥老太交大片| 欧美国产欧美亚州国产日韩mv天天看完整 | 欧美日韩一二三| 久久99精品国产| 一区二区三区自拍| 7777女厕盗摄久久久| 成人午夜激情片| 日韩精品一二三区| 国产欧美久久久精品影院 | 午夜精品一区二区三区三上悠亚| 欧美日韩成人在线| 国产宾馆实践打屁股91| 日本成人超碰在线观看| 最新成人av在线| 久久精品亚洲一区二区三区浴池| 欧美日韩一级二级| 色综合天天性综合| 国产激情一区二区三区| 视频一区二区欧美| 国产精品久久久久久一区二区三区 | 中文字幕在线观看一区| 欧美亚洲综合久久| 成人免费视频视频| 老司机午夜精品99久久| 亚洲在线免费播放| 中文字幕在线视频一区| 欧美精品一区二| 日韩欧美一级片| 337p亚洲精品色噜噜| 91麻豆精品在线观看| 成人一二三区视频| 国产精品亚洲午夜一区二区三区| 婷婷一区二区三区| 亚洲超碰精品一区二区| 亚洲精品国产一区二区精华液| 国产精品美女久久久久久| 亚洲精品在线三区| 欧美xxxxxxxxx| 精品少妇一区二区三区视频免付费 | 国产精品成人免费在线| 国产免费成人在线视频| 欧美国产国产综合| 国产精品麻豆久久久| 中文字幕亚洲成人| 亚洲同性同志一二三专区| 国产精品三级久久久久三级| 国产欧美视频一区二区| 国产欧美精品一区| 国产精品嫩草久久久久| 国产精品视频看| 中文字幕永久在线不卡| 亚洲天堂久久久久久久| 综合在线观看色| 一区二区免费在线播放| 亚洲精品va在线观看| 亚洲福利视频导航| 日本不卡免费在线视频| 精品一区二区三区av| 国产成人综合亚洲91猫咪| 成人激情图片网| 91国产福利在线| 91精品国产91久久综合桃花 | 日韩二区三区四区| 国内精品写真在线观看| 99国产精品久久久| 欧美精品xxxxbbbb| 久久精品视频在线看| 亚洲三级在线看| 日韩国产欧美在线播放| 国产乱子伦一区二区三区国色天香 | 精品精品国产高清a毛片牛牛| 欧美激情在线看| 一区二区三区影院| 日本午夜精品一区二区三区电影| 激情文学综合网| 色乱码一区二区三区88| 日韩视频国产视频| 欧美激情在线一区二区| 亚洲国产精品久久久久秋霞影院| 精品一区二区三区的国产在线播放| 国产成人99久久亚洲综合精品| 欧美日韩在线不卡| 国产女人18水真多18精品一级做| 亚洲成av人片在线| av一本久道久久综合久久鬼色| 在线综合视频播放| 亚洲日本在线a| 国产麻豆一精品一av一免费| 欧美日韩国产在线观看| 中文字幕在线免费不卡| 韩国一区二区三区| 91精品国产色综合久久不卡蜜臀| 亚洲欧美偷拍卡通变态| 国产精品一区二区免费不卡|