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

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

?? cleanup0.c

?? pthread source code,you can compile directly
?? C
字號:
/* * File: cleanup1.c * * * -------------------------------------------------------------------------- * *      Pthreads-win32 - POSIX Threads Library for Win32 *      Copyright(C) 1998 John E. Bossom *      Copyright(C) 1999,2005 Pthreads-win32 contributors *  *      Contact Email: rpj@callisto.canberra.edu.au *  *      The current list of contributors is contained *      in the file CONTRIBUTORS included with the source *      code distribution. The list can also be seen at the *      following World Wide Web location: *      http://sources.redhat.com/pthreads-win32/contributors.html *  *      This library is free software; you can redistribute it and/or *      modify it under the terms of the GNU Lesser General Public *      License as published by the Free Software Foundation; either *      version 2 of the License, or (at your option) any later version. *  *      This library is distributed in the hope that it will be useful, *      but WITHOUT ANY WARRANTY; without even the implied warranty of *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU *      Lesser General Public License for more details. *  *      You should have received a copy of the GNU Lesser General Public *      License along with this library in the file COPYING.LIB; *      if not, write to the Free Software Foundation, Inc., *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * * -------------------------------------------------------------------------- * * Test Synopsis: Test cleanup handler executes (when thread is not canceled). * * Test Method (Validation or Falsification): * -  * * Requirements Tested: * - * * Features Tested: * -  * * Cases Tested: * -  * * Description: * -  * * Environment: * -  * * Input: * - None. * * Output: * - File name, Line number, and failed expression on failure. * - No output on success. * * Assumptions: * - have working pthread_create, pthread_self, pthread_mutex_lock/unlock *   pthread_testcancel, pthread_cancel, pthread_join * * Pass Criteria: * - Process returns zero exit status. * * Fail Criteria: * - Process returns non-zero exit status. */#if defined(_MSC_VER) || defined(__cplusplus)#include "test.h"/* * Create NUMTHREADS threads in addition to the Main thread. */enum {  NUMTHREADS = 10};typedef struct bag_t_ bag_t;struct bag_t_ {  int threadnum;  int started;  /* Add more per-thread state variables here */  int count;};static bag_t threadbag[NUMTHREADS + 1];typedef struct {  int i;  CRITICAL_SECTION cs;} sharedInt_t;static sharedInt_t pop_count = {0, {0}};static voidincrement_pop_count(void * arg){  sharedInt_t * sI = (sharedInt_t *) arg;  EnterCriticalSection(&sI->cs);  sI->i++;  LeaveCriticalSection(&sI->cs);}void *mythread(void * arg){  int result = 0;  bag_t * bag = (bag_t *) arg;  assert(bag == &threadbag[bag->threadnum]);  assert(bag->started == 0);  bag->started = 1;  /* Set to known state and type */  assert(pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL) == 0);  assert(pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL) == 0);#ifdef _MSC_VER#pragma inline_depth(0)#endif  pthread_cleanup_push(increment_pop_count, (void *) &pop_count);  Sleep(100);  pthread_cleanup_pop(1);#ifdef _MSC_VER#pragma inline_depth()#endif  return (void *) result;}intmain(){  int failed = 0;  int i;  pthread_t t[NUMTHREADS + 1];  InitializeCriticalSection(&pop_count.cs);  assert((t[0] = pthread_self()).p != NULL);  for (i = 1; i <= NUMTHREADS; i++)    {      threadbag[i].started = 0;      threadbag[i].threadnum = i;      assert(pthread_create(&t[i], NULL, mythread, (void *) &threadbag[i]) == 0);    }  /*   * Code to control or munipulate child threads should probably go here.   */  Sleep(500);  /*   * Give threads time to run.   */  Sleep(NUMTHREADS * 100);  /*   * Standard check that all threads started.   */  for (i = 1; i <= NUMTHREADS; i++)    {       if (!threadbag[i].started)	{	  failed |= !threadbag[i].started;	  fprintf(stderr, "Thread %d: started %d\n", i, threadbag[i].started);	}    }  assert(!failed);  /*   * Check any results here. Set "failed" and only print output on failure.   */  failed = 0;  for (i = 1; i <= NUMTHREADS; i++)    {      int fail = 0;      int result = 0;      assert(pthread_join(t[i], (void **) &result) == 0);      fail = (result == (int) PTHREAD_CANCELED);      if (fail)	{	  fprintf(stderr, "Thread %d: started %d: result %d\n",		  i,		  threadbag[i].started,		result);	  fflush(stderr);	}      failed = (failed || fail);    }  assert(!failed);  assert(pop_count.i == NUMTHREADS);  DeleteCriticalSection(&pop_count.cs);  /*   * Success.   */  return 0;}#else /* defined(_MSC_VER) || defined(__cplusplus) */intmain(){  return 0;}#endif /* defined(_MSC_VER) || defined(__cplusplus) */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲综合久久| 色av一区二区| 一区二区三区高清不卡| 日韩你懂的在线播放| 色婷婷一区二区| 国产一区二区三区久久久| 亚洲国产中文字幕| 中文成人综合网| 日韩一区二区精品在线观看| 99国产精品久久久久久久久久| 蜜桃久久av一区| 日韩码欧中文字| 久久久精品国产免费观看同学| 7777精品伊人久久久大香线蕉| heyzo一本久久综合| 精品一区二区日韩| 欧美a级理论片| 亚洲成a人片综合在线| 亚洲欧美国产77777| 国产精品久久久久久久久免费相片| 精品国产一区二区精华| 欧美男女性生活在线直播观看| 91亚洲男人天堂| 成av人片一区二区| 国产999精品久久| 激情综合网av| 国内精品第一页| 美女久久久精品| 麻豆中文一区二区| 日韩avvvv在线播放| 亚洲国产美女搞黄色| 亚洲精品成人天堂一二三| 国产精品视频第一区| 日本一区二区高清| 国产精品嫩草久久久久| 日本一二三不卡| 亚洲国产精品精华液ab| 国产欧美一区二区三区在线看蜜臀 | 色婷婷久久99综合精品jk白丝| 粉嫩aⅴ一区二区三区四区五区| 国内久久精品视频| 国产乱理伦片在线观看夜一区| 精品一区二区在线视频| 久久99精品网久久| 国产激情偷乱视频一区二区三区 | 99久久精品国产精品久久| 国产不卡在线播放| av中文字幕不卡| 91欧美一区二区| 欧美日韩免费一区二区三区视频| 欧美午夜片在线看| 欧美肥妇bbw| 久久婷婷综合激情| 久久精品国产99久久6| 夜夜亚洲天天久久| 亚洲成av人片观看| 麻豆91免费观看| 国产成人自拍网| av电影在线观看完整版一区二区| 成人av午夜电影| 在线观看日韩电影| 日韩美女在线视频| 欧美激情一区二区| 一区二区三区免费| 青青草国产精品亚洲专区无| 国内成人精品2018免费看| 国产成人a级片| 91久久线看在观草草青青| 欧美日韩一本到| 欧美精品一区二区三区蜜桃| 国产精品麻豆一区二区| 亚洲精品久久嫩草网站秘色| 日韩精品亚洲一区| 风间由美一区二区三区在线观看 | 精品久久久久久久久久久久包黑料 | 亚洲色图在线视频| 香蕉久久一区二区不卡无毒影院| 免费观看30秒视频久久| 不卡大黄网站免费看| 欧美视频在线一区| 欧美成人一区二区| 亚洲欧美偷拍另类a∨色屁股| 丝袜美腿亚洲综合| 懂色av噜噜一区二区三区av| 欧美中文字幕久久| 2020国产成人综合网| 一区二区免费看| 国产一区二区三区四区在线观看| 91片黄在线观看| 亚洲精品一区二区三区影院| 亚洲老司机在线| 国产精品一区一区| 欧美日韩国产一二三| 中文字幕免费不卡| 美女一区二区三区在线观看| 日本高清视频一区二区| 精品国产免费视频| 亚洲国产一区二区三区青草影视| 国产不卡视频一区| 日韩三级免费观看| 一区二区三区波多野结衣在线观看 | 91美女片黄在线观看| 欧美一区二区三区免费大片| 成人欧美一区二区三区白人| 激情六月婷婷综合| 欧美久久免费观看| 一区二区三区在线高清| 在线91免费看| 午夜精品久久久久久久| 成人国产亚洲欧美成人综合网| 91精品国产综合久久蜜臀| 亚洲精品乱码久久久久久黑人| 国产精品456露脸| 欧美一级二级在线观看| 亚洲国产精品一区二区久久恐怖片 | 日本一区二区三级电影在线观看 | 亚洲精品ww久久久久久p站| 国产一区在线观看麻豆| 欧美一级免费观看| 丝瓜av网站精品一区二区| 91黄色免费看| 亚洲女人的天堂| 99精品欧美一区| 国产精品高潮呻吟久久| 国产老妇另类xxxxx| 欧美成人一区二区三区片免费| 日本成人在线网站| 欧美日本在线播放| 亚洲地区一二三色| 色噜噜夜夜夜综合网| 国产精品传媒视频| 99在线热播精品免费| 国产日韩精品久久久| 国产精品一二三区| 中文字幕av不卡| 成人污污视频在线观看| 国产精品第一页第二页第三页| 国产**成人网毛片九色| 亚洲国产精品二十页| 懂色av一区二区在线播放| 欧美国产精品v| 91亚洲精品久久久蜜桃| 亚洲夂夂婷婷色拍ww47| 欧美亚洲国产bt| 日本中文字幕一区二区有限公司| 欧美一级理论片| 国产一区二三区好的| 国产区在线观看成人精品| 成人激情午夜影院| 亚洲人123区| 欧美视频一区二区三区| 日韩电影在线看| 2014亚洲片线观看视频免费| 懂色av一区二区夜夜嗨| 一区二区三区欧美在线观看| 欧美日韩在线三级| 久久99热国产| 中文字幕国产精品一区二区| bt7086福利一区国产| 日韩美女久久久| 88在线观看91蜜桃国自产| 麻豆精品一二三| 亚洲国产成人私人影院tom| 99精品国产91久久久久久| 亚洲h在线观看| 精品日韩成人av| 不卡影院免费观看| 亚洲国产美国国产综合一区二区| 日韩视频免费观看高清完整版在线观看 | 久久久久一区二区三区四区| 不卡在线视频中文字幕| 偷偷要91色婷婷| 色视频成人在线观看免| 18欧美亚洲精品| 欧美欧美欧美欧美首页| 国产精品99久| 亚洲影院理伦片| 久久综合丝袜日本网| 在线观看视频一区二区欧美日韩| 美女网站色91| 亚洲欧洲国产日本综合| 欧美一区二区美女| 成人18视频日本| 奇米精品一区二区三区在线观看一 | 国产色综合一区| 欧美亚洲精品一区| 国产乱子伦视频一区二区三区| 亚洲黄色片在线观看| 久久久99精品久久| 91麻豆精品国产综合久久久久久 | 美女国产一区二区| 一区二区三区四区在线播放| 精品粉嫩超白一线天av| 欧美性生交片4| 成人va在线观看| 精品一区二区在线视频| 天堂午夜影视日韩欧美一区二区| 国产欧美一二三区| 日韩视频在线你懂得| 日本韩国欧美一区|