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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? my_pthread.h

?? 這是有關(guān)網(wǎng)絡(luò)入侵檢測技術(shù)系統(tǒng)的源代碼。使用visual c++編程
?? H
?? 第 1 頁 / 共 2 頁
字號:
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB      This library is free software; you can redistribute it and/or   modify it under the terms of the GNU Library 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   Library General Public License for more details.      You should have received a copy of the GNU Library General Public   License along with this library; if not, write to the Free   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,   MA 02111-1307, USA *//* Defines to make different thread packages compatible */#ifndef _my_pthread_h#define _my_pthread_h#include <errno.h>#ifndef ETIME#define ETIME ETIMEDOUT				// For FreeBSD#endif#if defined(__WIN__)typedef CRITICAL_SECTION pthread_mutex_t;typedef HANDLE		 pthread_t;typedef struct thread_attr {    DWORD dwStackSize ;    DWORD dwCreatingFlag ;    int priority ;} pthread_attr_t ;typedef struct { int dummy; } pthread_condattr_t;/* Implementation of posix conditions */typedef struct st_pthread_link {  DWORD thread_id;  struct st_pthread_link *next;} pthread_link;typedef struct {  uint32 waiting;  HANDLE semaphore;} pthread_cond_t;struct timespec {		/* For pthread_cond_timedwait() */    time_t tv_sec;    long tv_nsec;};typedef int pthread_mutexattr_t;#define win_pthread_self my_thread_var->pthread_self#define pthread_handler_decl(A,B) unsigned __cdecl A(void *B)typedef unsigned (__cdecl *pthread_handler)(void *);void win_pthread_init(void);int win_pthread_setspecific(void *A,void *B,uint length);int pthread_create(pthread_t *,pthread_attr_t *,pthread_handler,void *);int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr);int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,			   struct timespec *abstime);int pthread_cond_signal(pthread_cond_t *cond);int pthread_cond_broadcast(pthread_cond_t *cond);int pthread_cond_destroy(pthread_cond_t *cond);int pthread_attr_init(pthread_attr_t *connect_att);int pthread_attr_setstacksize(pthread_attr_t *connect_att,DWORD stack);int pthread_attr_setprio(pthread_attr_t *connect_att,int priority);int pthread_attr_destroy(pthread_attr_t *connect_att);struct tm *localtime_r(const time_t *timep,struct tm *tmp);void pthread_exit(unsigned A);	 /* was #define pthread_exit(A) ExitThread(A)*/#define ETIMEDOUT 145		    /* Win32 doesn't have this */#define getpid() GetCurrentThreadId()#define pthread_self() win_pthread_self#define HAVE_LOCALTIME_R#define _REENTRANT#define HAVE_PTHREAD_ATTR_SETSTACKSIZE#ifdef USE_TLS					/* For LIBMYSQL.DLL */#undef SAFE_MUTEX				/* This will cause conflicts */#define pthread_key(T,V)  DWORD V#define pthread_key_create(A,B) ((*A=TlsAlloc())==0xFFFFFFFF)#define pthread_getspecific(A) (TlsGetValue(A))#define my_pthread_getspecific(T,A) ((T) TlsGetValue(A))#define my_pthread_getspecific_ptr(T,V) ((T) TlsGetValue(A))#define my_pthread_setspecific_ptr(T,V) TlsSetValue(T,V)#define pthread_setspecific(A,B) TlsSetValue(A,B)#else#define pthread_key(T,V) __declspec(thread) T V#define pthread_key_create(A,B) pthread_dummy(0)#define pthread_getspecific(A) (&(A))#define my_pthread_getspecific(T,A) (&(A))#define my_pthread_getspecific_ptr(T,V) (V)#define my_pthread_setspecific_ptr(T,V) ((T)=(V),0)#define pthread_setspecific(A,B) win_pthread_setspecific(&(A),(B),sizeof(A))#endif /* USE_TLS */#define pthread_equal(A,B) ((A) == (B))#define pthread_mutex_init(A,B)  InitializeCriticalSection(A)#define pthread_mutex_lock(A)	 (EnterCriticalSection(A),0)#define pthread_mutex_unlock(A)  LeaveCriticalSection(A)#define pthread_mutex_destroy(A) DeleteCriticalSection(A)#define my_pthread_setprio(A,B)  SetThreadPriority(GetCurrentThread(), (B))/* Dummy defines for easier code */#define pthread_kill(A,B) pthread_dummy(0)#define pthread_attr_setdetachstate(A,B) pthread_dummy(0)#define my_pthread_attr_setprio(A,B) pthread_attr_setprio(A,B)#define pthread_attr_setscope(A,B)#define pthread_detach_this_thread()#define pthread_condattr_init(A)#define pthread_condattr_destroy(A)//Irena: compiler does not like this://#define my_pthread_getprio(pthread_t thread_id) pthread_dummy(0)#define my_pthread_getprio(thread_id) pthread_dummy(0)#elif defined(HAVE_UNIXWARE7_THREADS)#include <thread.h>#include <synch.h>#ifndef _REENTRANT#define _REENTRANT#endif#define HAVE_NONPOSIX_SIGWAIT#define pthread_t thread_t#define pthread_cond_t cond_t#define pthread_mutex_t mutex_t#define pthread_key_t thread_key_ttypedef int pthread_attr_t;			/* Needed by Unixware 7.0.0 */#define pthread_key_create(A,B) thr_keycreate((A),(B))#define pthread_handler_decl(A,B) void *A(void *B)#define pthread_key(T,V) pthread_key_t Vvoid *	my_pthread_getspecific_imp(pthread_key_t key);#define my_pthread_getspecific(A,B) ((A) my_pthread_getspecific_imp(B))#define my_pthread_getspecific_ptr(T,V) my_pthread_getspecific(T,V)#define pthread_setspecific(A,B) thr_setspecific(A,B)#define my_pthread_setspecific_ptr(T,V) pthread_setspecific(T,V)#define pthread_create(A,B,C,D) thr_create(NULL,65536L,(C),(D),THR_DETACHED,(A))#define pthread_cond_init(a,b) cond_init((a),USYNC_THREAD,NULL)#define pthread_cond_destroy(a) cond_destroy(a)#define pthread_cond_signal(a) cond_signal(a)#define pthread_cond_wait(a,b) cond_wait((a),(b))#define pthread_cond_timedwait(a,b,c) cond_timedwait((a),(b),(c))#define pthread_cond_broadcast(a) cond_broadcast(a)#define pthread_mutex_init(a,b) mutex_init((a),USYNC_THREAD,NULL)#define pthread_mutex_lock(a) mutex_lock(a)#define pthread_mutex_unlock(a) mutex_unlock(a)#define pthread_mutex_destroy(a) mutex_destroy(a)#define pthread_self() thr_self()#define pthread_exit(A) thr_exit(A)#define pthread_equal(A,B) (((A) == (B)) ? 1 : 0)#define pthread_kill(A,B) thr_kill((A),(B))#define HAVE_PTHREAD_KILL#define pthread_sigmask(A,B,C) thr_sigsetmask((A),(B),(C))extern int my_sigwait(const sigset_t *set,int *sig);#define pthread_detach_this_thread() pthread_dummy(0)#define pthread_attr_init(A) pthread_dummy(0)#define pthread_attr_destroy(A) pthread_dummy(0)#define pthread_attr_setscope(A,B) pthread_dummy(0)#define pthread_attr_setdetachstate(A,B) pthread_dummy(0)#define my_pthread_setprio(A,B) pthread_dummy (0)#define my_pthread_getprio(A) pthread_dummy (0)#define my_pthread_attr_setprio(A,B) pthread_dummy(0)#else /* Normal threads */#ifdef HAVE_rts_threads#define sigwait org_sigwait#include <signal.h>#undef sigwait#endif#undef _REENTRANT			/* Fix if _REENTRANT is in pthread.h */#include <pthread.h>#ifndef _REENTRANT#define _REENTRANT#endif#ifdef HAVE_THR_SETCONCURRENCY#include <thread.h>			/* Probably solaris */#endif#ifdef HAVE_SCHED_H#include <sched.h>#endif#ifdef HAVE_SYNCH_H#include <synch.h>#endif#if defined(__EMX__) && (!defined(EMX_PTHREAD_REV) || (EMX_PTHREAD_REV < 2))#error Requires at least rev 2 of EMX pthreads library.#endifextern int my_pthread_getprio(pthread_t thread_id);#define pthread_key(T,V) pthread_key_t V#define my_pthread_getspecific_ptr(T,V) my_pthread_getspecific(T,(V))#define my_pthread_setspecific_ptr(T,V) pthread_setspecific(T,(void*) (V))#define pthread_detach_this_thread()#define pthread_handler_decl(A,B) void *A(void *B)typedef void *(* pthread_handler)(void *);/* Test first for RTS or FSU threads */#if defined(PTHREAD_SCOPE_GLOBAL) && !defined(PTHREAD_SCOPE_SYSTEM)#define HAVE_rts_threadsextern int my_pthread_create_detached;#define pthread_sigmask(A,B,C) sigprocmask((A),(B),(C))#define PTHREAD_CREATE_DETACHED &my_pthread_create_detached#define PTHREAD_SCOPE_SYSTEM  PTHREAD_SCOPE_GLOBAL#define PTHREAD_SCOPE_PROCESS PTHREAD_SCOPE_LOCAL#define USE_ALARM_THREAD#elif defined(HAVE_mit_thread)#define USE_ALARM_THREAD#undef	HAVE_LOCALTIME_R#define HAVE_LOCALTIME_R#undef	HAVE_PTHREAD_ATTR_SETSCOPE#define HAVE_PTHREAD_ATTR_SETSCOPE#undef HAVE_GLIBC2_STYLE_GETHOSTBYNAME_R	/* If we are running linux */#undef HAVE_RWLOCK_T#undef HAVE_RWLOCK_INIT#undef HAVE_PTHREAD_RWLOCK_RDLOCK#undef HAVE_SNPRINTF#define sigset(A,B) pthread_signal((A),(void (*)(int)) (B))#define signal(A,B) pthread_signal((A),(void (*)(int)) (B))#define my_pthread_attr_setprio(A,B)#endif /* defined(PTHREAD_SCOPE_GLOBAL) && !defined(PTHREAD_SCOPE_SYSTEM) */#if defined(_BSDI_VERSION) && _BSDI_VERSION < 199910int sigwait(sigset_t *set, int *sig);#endif#if defined(HAVE_UNIXWARE7_POSIX)#undef HAVE_NONPOSIX_SIGWAIT#define HAVE_NONPOSIX_SIGWAIT	/* sigwait takes only 1 argument */#endif#ifndef HAVE_NONPOSIX_SIGWAIT#define my_sigwait(A,B) sigwait((A),(B))#elseint my_sigwait(const sigset_t *set,int *sig);#endif#ifdef HAVE_NONPOSIX_PTHREAD_MUTEX_INIT#ifndef SAFE_MUTEX#define pthread_mutex_init(a,b) my_pthread_mutex_init((a),(b))extern int my_pthread_mutex_init(pthread_mutex_t *mp,				 const pthread_mutexattr_t *attr);#endif /* SAFE_MUTEX */#define pthread_cond_init(a,b) my_pthread_cond_init((a),(b))extern int my_pthread_cond_init(pthread_cond_t *mp,				const pthread_condattr_t *attr);#endif /* HAVE_NONPOSIX_PTHREAD_MUTEX_INIT */#if defined(HAVE_SIGTHREADMASK) && !defined(HAVE_PTHREAD_SIGMASK)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av亚洲精华国产精华| 99久久亚洲一区二区三区青草| 热久久一区二区| 亚洲国产精品久久久久婷婷884| 日韩在线播放一区二区| 国产一区不卡在线| 在线精品观看国产| 久久久久99精品一区| 一区二区三区不卡视频在线观看| 日本aⅴ亚洲精品中文乱码| 日日摸夜夜添夜夜添精品视频| 国产精品亚洲一区二区三区在线| 91国产精品成人| 日韩女优制服丝袜电影| 一区二区三区四区亚洲| 久久99久久久欧美国产| 99国产精品国产精品久久| 4hu四虎永久在线影院成人| 中文字幕在线不卡| 免费观看在线综合| 色狠狠av一区二区三区| 国产视频在线观看一区二区三区| 一区二区免费在线播放| 丁香激情综合国产| 日韩精品一区二区在线| 亚洲一级二级三级| 99久久久国产精品免费蜜臀| 精品国产乱码91久久久久久网站| 亚洲欧美在线高清| 国产乱码一区二区三区| 日韩亚洲欧美高清| 亚洲网友自拍偷拍| 色综合中文字幕国产| 欧美精品一区男女天堂| 午夜激情一区二区| 丰满少妇在线播放bd日韩电影| 欧美一级搡bbbb搡bbbb| 亚洲bdsm女犯bdsm网站| 粉嫩欧美一区二区三区高清影视| 日韩精品在线看片z| 午夜视频在线观看一区二区 | 亚洲欧洲av一区二区三区久久| 久久99精品国产麻豆不卡| 91麻豆精品国产91| 麻豆精品视频在线| 欧美国产日韩一二三区| 色综合色狠狠综合色| 夜色激情一区二区| 欧美一区二区三区免费视频| 日本欧美一区二区在线观看| 精品国免费一区二区三区| 国产一区二区三区日韩| 中文字幕国产精品一区二区| 一本久道久久综合中文字幕 | 成人欧美一区二区三区小说| 91片在线免费观看| 午夜影院久久久| 久久影视一区二区| 97se亚洲国产综合自在线不卡| 一区二区三区.www| 精品国产一区二区三区久久影院 | 毛片av一区二区| 欧美国产激情二区三区 | 国产成a人亚洲精| 亚洲欧美另类图片小说| 日韩一区二区免费在线观看| 国产成人精品三级麻豆| 亚洲成av人片在线观看| 国产日韩av一区二区| 欧美日韩在线三区| 国产成人av影院| 亚洲电影在线免费观看| 国产日韩欧美电影| 欧美一级片在线| 91视频一区二区三区| 激情另类小说区图片区视频区| 亚洲视频一区在线观看| 精品国产伦一区二区三区观看方式| 97精品国产97久久久久久久久久久久 | 同产精品九九九| 国产精品入口麻豆九色| 日韩欧美国产一区二区三区 | 天堂va蜜桃一区二区三区漫画版| 欧美高清性hdvideosex| 国产成人精品综合在线观看| 亚洲国产成人tv| 国产精品色哟哟网站| 欧美一区二区三区人| 欧洲视频一区二区| 懂色av一区二区三区免费观看| 理论电影国产精品| 亚洲va国产天堂va久久en| 亚洲日本在线观看| 国产精品视频第一区| 亚洲精品一区二区三区福利 | 亚洲国产高清在线| 欧美电影免费观看高清完整版在线| 91福利社在线观看| 99精品视频中文字幕| 国产高清成人在线| 国产在线麻豆精品观看| 亚洲va韩国va欧美va精品| 亚洲人成网站色在线观看| 国产精品黄色在线观看| 欧美激情在线一区二区三区| 欧美videos中文字幕| 欧美一区二区三区在| 欧美精选午夜久久久乱码6080| 色噜噜久久综合| 97久久精品人人澡人人爽| 99国产精品国产精品毛片| 99久久精品99国产精品| 99久久精品情趣| 99re在线精品| 色综合久久综合网97色综合| 95精品视频在线| 91蝌蚪porny九色| 91视频一区二区三区| 99re6这里只有精品视频在线观看| 成人国产亚洲欧美成人综合网| 粉嫩在线一区二区三区视频| av在线综合网| 色婷婷久久99综合精品jk白丝| 色综合久久久久综合99| 91福利小视频| 日韩美女一区二区三区| 久久精品一区二区三区四区| 精品久久人人做人人爰| 日韩欧美三级在线| 精品卡一卡二卡三卡四在线| 久久色中文字幕| 国产精品成人在线观看| 亚洲精品欧美专区| 日韩成人av影视| 麻豆国产精品官网| 成人精品国产福利| 欧美在线播放高清精品| 欧美一区二视频| 国产亚洲成av人在线观看导航| 国产精品国产三级国产aⅴ无密码| 亚洲三级在线免费| 日日欢夜夜爽一区| 国产v综合v亚洲欧| 欧美三级电影在线看| 日韩美女视频在线| 亚洲少妇30p| 国产精品综合一区二区| 91麻豆精东视频| 欧美电影免费提供在线观看| 日本一区二区三区四区在线视频 | 在线亚洲高清视频| 色94色欧美sute亚洲线路二| 51午夜精品国产| 久久影院午夜论| 亚洲国产视频在线| 国产黄人亚洲片| 欧美日韩免费一区二区三区 | 欧美美女直播网站| 久久久精品人体av艺术| 一区二区高清免费观看影视大全| 精品在线播放午夜| 欧美综合一区二区| 欧美激情中文字幕| 另类专区欧美蜜桃臀第一页| 在线影视一区二区三区| 日本一区二区动态图| 免费在线观看一区| 91福利视频久久久久| 国产欧美视频一区二区三区| 日本不卡视频一二三区| 日本伦理一区二区| 亚洲国产高清不卡| 狠狠色丁香久久婷婷综合丁香| 欧美三级电影一区| 亚洲欧美另类久久久精品2019| 国产精品一级在线| 欧美大片顶级少妇| 日韩av在线免费观看不卡| 在线观看视频91| 亚洲欧美激情一区二区| 成人av电影在线播放| 国产午夜精品一区二区三区嫩草| 日本aⅴ免费视频一区二区三区| 欧美三级视频在线| 欧美日韩精品一区视频| 亚洲丝袜美腿综合| av激情亚洲男人天堂| 久久精品夜夜夜夜久久| 激情av综合网| 欧美精品一区二区三区蜜臀| 美女性感视频久久| 日韩久久精品一区| 麻豆精品一区二区av白丝在线| 欧美丰满一区二区免费视频| 亚洲国产一区二区三区青草影视| 色综合久久久网| 亚洲国产综合视频在线观看| 色婷婷国产精品| 亚洲一级电影视频| 91精品国产综合久久精品麻豆|