亚洲欧美第一页_禁久久精品乱码_粉嫩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 Contiki operating system. * * Author: Adam Dunkels <adam@sics.se> * * $Id: pt.h,v 1.7 2006/10/02 07:52:56 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_YIELDED 1#define PT_EXITED  2#define PT_ENDED   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_EXITED)/** @} *//** * \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一区二区三区免费野_久草精品视频
97精品久久久久中文字幕| 国产精品久久三区| 4438亚洲最大| 制服丝袜日韩国产| 7777精品伊人久久久大香线蕉完整版| 99v久久综合狠狠综合久久| 成人aa视频在线观看| 91香蕉视频黄| 在线看不卡av| 欧美日韩精品三区| 在线不卡中文字幕播放| 91精品国产入口在线| 欧美一区二区三区成人| 日韩欧美的一区| 久久久久久99精品| 国产精品妹子av| 亚洲日穴在线视频| 亚洲成人激情自拍| 久久99精品久久久久| 国产在线精品不卡| 不卡视频一二三四| 欧美亚洲一区二区在线观看| 欧美精品18+| 亚洲精品一区二区三区香蕉| 国产日韩欧美麻豆| 亚洲激情网站免费观看| 三级影片在线观看欧美日韩一区二区 | 免费精品视频最新在线| 麻豆精品一区二区三区| 成人深夜在线观看| 欧美又粗又大又爽| 精品蜜桃在线看| 国产精品久久午夜| 日韩精品三区四区| 国产成人精品影视| 欧美亚洲国产一区二区三区va | 综合精品久久久| 日韩国产成人精品| 国产成人福利片| 欧美性猛片xxxx免费看久爱| 亚洲精品一区二区三区影院 | 成人成人成人在线视频| 欧美体内she精高潮| 久久婷婷国产综合精品青草| 一区二区三区日韩欧美精品| 麻豆国产精品777777在线| 91麻豆国产福利精品| 欧美大肚乱孕交hd孕妇| 亚洲欧美日韩国产综合在线| 日韩高清电影一区| 岛国精品在线观看| 91精品国产入口| 综合欧美一区二区三区| 久久国产精品一区二区| 99久久777色| wwwwww.欧美系列| 亚洲成a人在线观看| 本田岬高潮一区二区三区| 91精品国产一区二区三区蜜臀| 中文字幕制服丝袜成人av | 粉嫩一区二区三区在线看| 欧美视频完全免费看| 中文字幕av一区 二区| 另类小说色综合网站| 日本高清不卡aⅴ免费网站| 久久影院电视剧免费观看| 亚洲综合色视频| 成人激情免费网站| www日韩大片| 麻豆免费精品视频| 欧美人与禽zozo性伦| 日韩毛片高清在线播放| 国产99久久久久| 精品国产乱码久久久久久1区2区| 亚洲一区二区三区爽爽爽爽爽| 成人视屏免费看| 久久久精品国产免费观看同学| 日本成人在线看| 欧美性猛交xxxx黑人交| 亚洲欧洲精品天堂一级| 国产福利精品一区| 久久久亚洲精华液精华液精华液| 日韩在线一区二区三区| 欧美丝袜自拍制服另类| 亚洲精选免费视频| 91在线国产观看| 国产欧美日韩在线看| 国产在线精品一区二区夜色| 日韩一级视频免费观看在线| 五月天丁香久久| 欧美午夜精品久久久久久超碰| 亚洲日本欧美天堂| 96av麻豆蜜桃一区二区| 国产精品美女久久久久久久久| 成人在线综合网| 国产欧美一区在线| 国产成人高清视频| 中日韩av电影| 9l国产精品久久久久麻豆| 亚洲国产精华液网站w| 波多野结衣视频一区| 亚洲欧洲成人自拍| 色就色 综合激情| 洋洋av久久久久久久一区| 欧洲视频一区二区| 亚洲国产一区二区三区| 欧美高清视频一二三区| 美国三级日本三级久久99| 26uuu国产在线精品一区二区| 国产一区视频在线看| 久久日韩粉嫩一区二区三区| 国产suv精品一区二区6| 国产精品激情偷乱一区二区∴| 99国内精品久久| 亚洲国产人成综合网站| 91麻豆精品国产| 国产自产高清不卡| 日本一区二区综合亚洲| 91色视频在线| 午夜视频一区二区| 欧美成人女星排名| 国产suv精品一区二区6| 亚洲激情校园春色| 制服丝袜成人动漫| 国产精品一区二区久激情瑜伽| 国产精品青草综合久久久久99| 91精品办公室少妇高潮对白| 亚洲成人在线免费| 久久亚洲精精品中文字幕早川悠里| 成人午夜电影网站| 亚洲午夜av在线| www国产亚洲精品久久麻豆| 97se亚洲国产综合在线| 丝袜美腿亚洲一区| 欧美国产精品一区二区三区| 91福利在线播放| 日本亚洲天堂网| 国产日产欧美一区二区三区| 色婷婷av一区二区三区软件| 日本不卡123| 国产精品国产三级国产aⅴ中文 | 精品视频一区三区九区| 精品夜夜嗨av一区二区三区| 一色桃子久久精品亚洲| 在线综合+亚洲+欧美中文字幕| 国产高清久久久| 亚洲一区影音先锋| 久久综合色天天久久综合图片| 日本韩国一区二区三区视频| 毛片av中文字幕一区二区| 亚洲日本在线视频观看| 精品国产一区二区三区久久影院| 99国内精品久久| 精品在线亚洲视频| 亚洲最大成人网4388xx| xf在线a精品一区二区视频网站| 欧美在线制服丝袜| 国产精品自在欧美一区| 夜夜精品视频一区二区| 国产日韩欧美精品一区| 91精品国产一区二区人妖| 91在线国产福利| 国产精品99久久久久久久vr | 成人激情视频网站| 久久成人免费网站| 亚洲午夜电影网| 综合久久给合久久狠狠狠97色| 精品国产乱码久久久久久老虎| 欧美系列在线观看| 成人福利视频在线| 国产一区二区三区久久悠悠色av| 亚洲电影视频在线| 伊人一区二区三区| 国产精品久久久久久久裸模| www一区二区| 欧美一级日韩免费不卡| 欧美午夜精品一区| 色综合久久久网| 成人爽a毛片一区二区免费| 国产在线视视频有精品| 青草国产精品久久久久久| 亚洲电影一级黄| 亚洲女厕所小便bbb| 国产精品污网站| 久久久精品2019中文字幕之3| 日韩精品一区二区三区视频| 欧美日韩国产色站一区二区三区| 99re在线视频这里只有精品| 风间由美一区二区av101| 国产一区二区三区综合| 精品一区二区三区免费毛片爱| 青青草原综合久久大伊人精品| 亚洲福中文字幕伊人影院| 亚洲综合在线视频| 最好看的中文字幕久久| 日韩伦理电影网| 亚洲卡通欧美制服中文| 亚洲精品乱码久久久久久| 亚洲天天做日日做天天谢日日欢| 最好看的中文字幕久久|