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

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

?? timer_routines.c

?? linux下的C語言庫源碼有一百多M解壓后很不錯
?? C
字號:
/* Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.   This file is part of the GNU C Library.   Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.   The GNU C 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.1 of the   License, or (at your option) any later version.   The GNU C 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 the GNU C Library; see the file COPYING.LIB.  If not,   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,   Boston, MA 02111-1307, USA.  */#include <errno.h>#include <setjmp.h>#include <signal.h>#include <stdbool.h>#include <sysdep.h>#include <kernel-features.h>#include <nptl/pthreadP.h>#include "kernel-posix-timers.h"struct thread_start_data{  void (*thrfunc) (sigval_t);  sigval_t sival;};#ifdef __NR_timer_create/* Helper thread to call the user-provided function.  */static void *timer_sigev_thread (void *arg){  /* The parent thread has all signals blocked.  This is a bit     surprising for user code, although valid.  We unblock all     signals.  */  sigset_t ss;  sigemptyset (&ss);  INTERNAL_SYSCALL_DECL (err);  INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, NULL, _NSIG / 8);  struct thread_start_data *td = (struct thread_start_data *) arg;  void (*thrfunc) (sigval_t) = td->thrfunc;  sigval_t sival = td->sival;  /* The TD object was allocated in timer_helper_thread.  */  free (td);  /* Call the user-provided function.  */  thrfunc (sival);  return NULL;}/* Helper function to support starting threads for SIGEV_THREAD.  */static void *timer_helper_thread (void *arg){  /* Wait for the SIGTIMER signal, allowing the setXid signal, and     none else.  */  sigset_t ss;  sigemptyset (&ss);  __sigaddset (&ss, SIGTIMER);  /* Endless loop of waiting for signals.  The loop is only ended when     the thread is canceled.  */  while (1)    {      siginfo_t si;      /* sigwaitinfo cannot be used here, since it deletes	 SIGCANCEL == SIGTIMER from the set.  */      int oldtype = LIBC_CANCEL_ASYNC ();      /* XXX The size argument hopefully will have to be changed to the	 real size of the user-level sigset_t.  */      int result = INLINE_SYSCALL (rt_sigtimedwait, 4, &ss, &si, NULL,				   _NSIG / 8);      LIBC_CANCEL_RESET (oldtype);      if (result > 0)	{	  if (si.si_code == SI_TIMER)	    {	      struct timer *tk = (struct timer *) si.si_ptr;	      struct thread_start_data *td = malloc (sizeof (*td));	      /* There is not much we can do if the allocation fails.  */	      if (td != NULL)		{		  /* That is the signal we are waiting for.  */		  td->thrfunc = tk->thrfunc;		  td->sival = tk->sival;		  pthread_t th;		  (void) pthread_create (&th, &tk->attr, timer_sigev_thread,					 td);		}	    }	  else if (si.si_code == SI_TKILL)	    /* The thread is canceled.  */	    pthread_exit (NULL);	}    }}/* Control variable for helper thread creation.  */pthread_once_t __helper_once attribute_hidden;/* TID of the helper thread.  */pid_t __helper_tid attribute_hidden;/* Reset variables so that after a fork a new helper thread gets started.  */static voidreset_helper_control (void){  __helper_once = PTHREAD_ONCE_INIT;  __helper_tid = 0;}voidattribute_hidden__start_helper_thread (void){  /* The helper thread needs only very little resources     and should go away automatically when canceled.  */  pthread_attr_t attr;  (void) pthread_attr_init (&attr);  (void) pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);  /* Block all signals in the helper thread but SIGSETXID.  To do this     thoroughly we temporarily have to block all signals here.  The     helper can lose wakeups if SIGCANCEL is not blocked throughout,     but sigfillset omits it SIGSETXID.  So, we add SIGCANCEL back     explicitly here.  */  sigset_t ss;  sigset_t oss;  sigfillset (&ss);  __sigaddset (&ss, SIGCANCEL);  INTERNAL_SYSCALL_DECL (err);  INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);  /* Create the helper thread for this timer.  */  pthread_t th;  int res = pthread_create (&th, &attr, timer_helper_thread, NULL);  if (res == 0)    /* We managed to start the helper thread.  */    __helper_tid = ((struct pthread *) th)->tid;  /* Restore the signal mask.  */  INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &oss, NULL,		    _NSIG / 8);  /* No need for the attribute anymore.  */  (void) pthread_attr_destroy (&attr);  /* We have to make sure that after fork()ing a new helper thread can     be created.  */  pthread_atfork (NULL, NULL, reset_helper_control);}#endif#ifndef __ASSUME_POSIX_TIMERS# include <nptl/sysdeps/pthread/timer_routines.c>#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色系网站成人免费| 国产精品77777| 欧美性淫爽ww久久久久无| 亚洲男人都懂的| 欧美性生活久久| 丝袜诱惑制服诱惑色一区在线观看| 在线观看不卡视频| 日产欧产美韩系列久久99| 欧美电影免费观看高清完整版在线观看| 免费观看一级特黄欧美大片| 欧美草草影院在线视频| 国产精品一区二区三区乱码| 中文字幕一区二区三区视频| 日本电影欧美片| 奇米影视一区二区三区| 欧美va在线播放| www.视频一区| 亚洲国产日韩a在线播放| 欧美一级欧美一级在线播放| 国产成人啪午夜精品网站男同| 国产精品的网站| 欧美日韩一区二区在线视频| 久久成人免费日本黄色| 国产精品理论在线观看| 欧美视频精品在线| 精品一区中文字幕| 亚洲人123区| 欧美大胆一级视频| 色94色欧美sute亚洲13| 蜜臀av亚洲一区中文字幕| 亚洲国产精品成人综合| 欧美精选一区二区| 丰满亚洲少妇av| 日韩专区一卡二卡| 国产精品超碰97尤物18| 91精品国产色综合久久不卡蜜臀| 成人黄色av电影| 美女尤物国产一区| 一区二区三区四区五区视频在线观看| 欧美电影免费提供在线观看| 一本久久a久久精品亚洲| 韩国视频一区二区| 亚洲成人动漫精品| 亚洲毛片av在线| 国产日韩精品一区二区浪潮av| 欧美精品欧美精品系列| 99在线视频精品| 国产麻豆日韩欧美久久| 日日夜夜免费精品视频| 亚洲免费视频中文字幕| 欧美国产日韩a欧美在线观看| 3atv在线一区二区三区| 色香色香欲天天天影视综合网| 国产精品一区二区久激情瑜伽| 日本不卡一区二区| 亚洲一区二区精品久久av| 国产精品入口麻豆原神| 26uuu亚洲综合色欧美| 在线不卡一区二区| 欧美欧美欧美欧美首页| 色一情一乱一乱一91av| 99精品视频一区二区| 成人一道本在线| 懂色av一区二区夜夜嗨| 国产精品一二三在| 九色综合狠狠综合久久| 日本vs亚洲vs韩国一区三区二区| 性做久久久久久| 亚洲一二三四区| 亚洲图片欧美色图| 亚洲电影视频在线| 亚洲国产精品尤物yw在线观看| 亚洲一二三四在线| 午夜免费欧美电影| 日韩精品免费专区| 蜜臀精品一区二区三区在线观看 | 国产精品视频一二三区| 亚洲精品在线免费观看视频| 91精品国产综合久久蜜臀| 欧美一卡二卡在线| 日韩三级.com| 久久久久久久久久久久久女国产乱| 精品国产成人在线影院| 久久久久成人黄色影片| 国产精品乱码人人做人人爱| 国产精品毛片高清在线完整版| 国产精品福利影院| 夜夜嗨av一区二区三区网页| 亚洲成人免费视频| 久久精品国产精品亚洲精品| 久久99精品国产麻豆婷婷洗澡| 国产在线不卡视频| 成人av在线看| 欧美午夜精品理论片a级按摩| 欧美日韩国产首页在线观看| 91精品国产91久久久久久最新毛片 | 欧美日韩中文字幕一区二区| 欧美人妖巨大在线| 日韩亚洲欧美在线观看| 日韩午夜三级在线| 久久久99精品免费观看| 亚洲图片欧美激情| 婷婷国产在线综合| 国产在线精品免费| 色悠悠久久综合| 日韩欧美专区在线| 国产亚洲自拍一区| 亚洲最大的成人av| 老司机午夜精品| 北条麻妃国产九九精品视频| 欧美午夜一区二区| 久久一夜天堂av一区二区三区| 国产午夜精品一区二区| 一区二区三区日韩欧美精品| 麻豆精品一区二区av白丝在线| 国产69精品久久久久毛片| 欧美亚洲综合网| 久久综合九色欧美综合狠狠| 中文字幕综合网| 美女视频黄频大全不卡视频在线播放| 成人久久久精品乱码一区二区三区| 欧洲另类一二三四区| 国产日韩欧美电影| 综合激情成人伊人| 日韩欧美一区二区在线视频| 国内成人免费视频| 日韩二区在线观看| 欧美精品久久久久久久久老牛影院| 51久久夜色精品国产麻豆| 亚洲精品欧美激情| 色婷婷av一区二区| 欧美成人猛片aaaaaaa| 国产精品天干天干在线综合| 91在线视频网址| 亚洲精品大片www| 不卡的av在线播放| 国产蜜臀97一区二区三区 | 亚洲精品日韩一| 一本到一区二区三区| 亚洲综合av网| 欧美做爰猛烈大尺度电影无法无天| 亚洲精品你懂的| 欧美精品777| 日韩一区精品视频| 欧美一二三区在线观看| 蜜桃av一区二区| 久久久久久免费毛片精品| 国产成人av一区二区三区在线| 欧美国产欧美亚州国产日韩mv天天看完整| 国产精品一区二区男女羞羞无遮挡 | 亚洲国产va精品久久久不卡综合| 欧美中文字幕一区二区三区| 亚洲福利一区二区| 欧美成人激情免费网| 国产成人精品免费视频网站| 国产精品黄色在线观看| 91麻豆精品在线观看| 亚洲mv在线观看| 日韩女优制服丝袜电影| 国产99久久久精品| 一区二区三区中文字幕| 69成人精品免费视频| 国产又黄又大久久| 国产精品不卡一区二区三区| 色狠狠一区二区| 日产国产欧美视频一区精品| 国产亚洲精品资源在线26u| 91麻豆国产福利在线观看| 亚洲123区在线观看| 国产日韩欧美精品在线| 色婷婷国产精品| 久久精品国产成人一区二区三区| 国产亚洲精久久久久久| 欧美在线你懂得| 国产一区二区三区视频在线播放| 亚洲人一二三区| 日韩精品一区在线| a在线欧美一区| 日本一区中文字幕| 国产精品色一区二区三区| 在线不卡欧美精品一区二区三区| 国产精品一区二区三区四区| 亚洲成人动漫在线免费观看| 久久精品人人做人人爽人人| 欧美日韩视频在线一区二区| 国产suv精品一区二区三区| 亚洲一区二区三区四区中文字幕| 久久久久久久综合| 欧美日韩亚州综合| 97精品电影院| 韩国精品主播一区二区在线观看| 亚洲乱码中文字幕| 国产视频不卡一区| 在线电影院国产精品| 91美女福利视频| 国产高清一区日本| 久久精品国产精品亚洲综合| 依依成人综合视频| 中文字幕第一区综合| 91精品国产91久久久久久最新毛片|