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

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

?? wince-port

?? pthread source code,you can compile directly
??
字號:
NOTE: The comments in this file relate to the original WinCE portdone by Tristan Savatier. The semaphore routines have been completely rewritten since (2005-04-25), having been progressivelybroken more and more by changes to the library. All of the semaphoreroutines implemented for W9x/WNT/2000 and up should now also work forWinCE. Also, pthread_mutex_timedlock should now work. [RPJ]----Some interesting news:I have been able to port pthread-win32 to Windows-CE,which uses a subset of the WIN32 API.Since we intend to keep using pthread-win32 for ourCommercial WinCE developments, I would be very interestedif WinCE support could be added to the main source treeof pthread-win32.  Also, I would like to be creditedfor this port :-)Now, here is the story...The port was performed and tested on a Casio "Cassiopeia"PalmSize PC, which runs a MIP processor.  The OS in theCasio is WinCE version 2.11, but I used VC++ 6.0 withthe WinCE SDK for version 2.01.I used pthread-win32 to port a heavily multithreadedcommercial application (real-time MPEG video player)from Linux to WinCE.  I consider the changes thatI have done to be quite well tested.Overall the modifications that we had to do are minor.The WinCE port were based on pthread-win32-snap-1999-05-30,but I am certain that they can be integrated very easielyto more recent versions of the source.I have attached the modified source code:pthread-win32-snap-1999-05-30-WinCE.All the changes do not affect the code compiled on non-WinCEenvironment, provided that the macros used for WinCE compilationare not used, of course!Overall description of the WinCE port:-------------------------------------Most of the changes had to be made in areas wherepthread-win32 was relying on some standard-C librairies(e.g. _ftime, calloc, errno), which are not availableon WinCE. We have changed the code to use native Win32API instead (or in some cases we made wrappers).The Win32 Semaphores are not available,so we had to re-implement Semaphores using mutexesand events.Limitations / known problems of the WinCE port:----------------------------------------------Not all the semaphore routines have been ported(semaphores are defined by Posix but are not partpf pthread).  I have just done enough to makepthread routines (that rely internally on semaphores)work, like signal conditions.I noticed that the Win32 threads work slightlydifferently on WinCE.  This may have some impacton some tricky parts of pthread-win32, but I havenot really investigated.  For example, on WinCE,the process is killed if the main thread falls offthe bottom (or calls pthread_exit), regardlessof the existence of any other detached thread.Microsoft manual indicates that this behavior isdeffirent from that of Windows Threads for otherWin32 platforms.Detailed descriptions of the changes and rationals:------------------------------------- use a new macro NEED_ERRNO.If defined, the code in errno.c that defines a reentrant errnois compiled, regardless of _MT and _REENTRANT.Rational: On WinCE, there is no support for <stdio.h>, <errno.h> orany other standard C library, i.e. even if _MT or _REENTRANTis defined, errno is not provided by any library.  NEED_ERRNOmust be set to compile for WinCE.------------------------------------- In implement.h, change #include <semaphore.h> to #include "semaphore.h".Rational: semaphore.h is provided in pthread-win32 and should notbe searched in the systems standard include.  would not compile.This change does not seem to create problems on "classic" win32(e.g. win95).------------------------------------- use a new macro NEED_CALLOC.If defined, some code in misc.c will provide a replacementfor calloc, which is not available on Win32.------------------------------------- use a new macro NEED_CREATETHREAD.If defined, implement.h defines the macro _beginthreadexand _endthreadex.Rational: On WinCE, the wrappers _beginthreadex and _endthreadexdo not exist. The native Win32 routines must be used.------------------------------------- in misc.c:#ifdef NEED_DUPLICATEHANDLE	  /* DuplicateHandle does not exist on WinCE */	  self->threadH = GetCurrentThread();#else	  if( !DuplicateHandle(			       GetCurrentProcess(),			       GetCurrentThread(),			       GetCurrentProcess(),			       &self->threadH,			       0,			       FALSE,			       DUPLICATE_SAME_ACCESS ) )	    {	      free( self );	      return (NULL);	    }#endifRational: On WinCE, DuplicateHandle does not exist.  I could not understandwhy DuplicateHandle must be used.  It seems to me that getting the currentthread handle with GetCurrentThread() is sufficient, and it seems to workperfectly fine, so maybe DuplicateHandle was just plain useless to begin with ?------------------------------------- In private.c, added some code at the beginning of ptw32_processInitializeto detect the case of multiple calls to ptw32_processInitialize.Rational: In order to debug pthread-win32, it is easier to compileit as a regular library (it is not possible to debug DLL's on winCE).In that case, the application must call ptw32_rocessInitialize()explicitely, to initialize pthread-win32.  It is safer in this circumstanceto handle the case where ptw32_processInitialize() is called onan already initialized library:intptw32_processInitialize (void){	if (ptw32_processInitialized) {		/* 		 * ignore if already initialized. this is useful for 		 * programs that uses a non-dll pthread		 * library. such programs must call ptw32_processInitialize() explicitely,		 * since this initialization routine is automatically called only when		 * the dll is loaded.		 */		return TRUE;	}    ptw32_processInitialized = TRUE;  	[...]}------------------------------------- in private.c, if macro NEED_FTIME is defined, add routines toconvert timespec_to_filetime and filetime_to_timespec, and modifiedcode that was using _ftime() to use Win32 API instead.Rational: _ftime is not available on WinCE.  It is necessary to usethe native Win32 time API instead.Note: the routine timespec_to_filetime is provided as a convenience and a meanto test that filetime_to_timespec works, but it is not used by the library.------------------------------------- in semaphore.c, if macro NEED_SEM is defined, add code for the routines_increase_semaphore and _decrease_semaphore, and modify significantlythe implementation of the semaphores so that it does not use CreateSemaphore.Rational: CreateSemaphore is not available on WinCE.  I had to re-implementsemaphores using mutexes and Events.Note: Only the semaphore routines that are used by pthread are implemented(i.e. signal conditions rely on a subset of the semaphores routines, andthis subset works). Some other semaphore routines (e.g. sem_trywait) arenot yet supported on my WinCE port (and since I don't need them, I am notplanning to do anything about them).------------------------------------- in tsd.c, changed the code that defines TLS_OUT_OF_INDEXES/* TLS_OUT_OF_INDEXES not defined on WinCE */#ifndef TLS_OUT_OF_INDEXES#define TLS_OUT_OF_INDEXES 0xffffffff#endifRational: TLS_OUT_OF_INDEXES is not defined in any standard include fileon WinCE.------------------------------------- added file need_errno.hRational: On WinCE, there is no errno.h file. need_errno.h is just acopy of windows version of errno.h, with minor modifications due to the factthat some of the error codes are defined by the WinCE socket library.In pthread.h, if NEED_ERRNO is defined, the file need_errno.h isincluded (instead of <errno.h>).-- eof

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产日韩一区二区| 91激情在线视频| 精品国产一区二区三区av性色| 亚洲精品久久久久久国产精华液| 国产精品亚洲一区二区三区妖精| 日韩亚洲欧美中文三级| 日本 国产 欧美色综合| 日韩欧美一区二区在线视频| 日韩电影免费在线| 日韩写真欧美这视频| 蜜臀av一区二区在线观看| 99久久婷婷国产综合精品| 久久亚洲精品国产精品紫薇| 在线观看视频一区二区| 亚洲h动漫在线| 91亚洲精品久久久蜜桃| 中文字幕高清不卡| 亚洲第一二三四区| proumb性欧美在线观看| 日韩欧美的一区二区| 亚洲高清视频的网址| 亚洲一区二区三区三| 国内外成人在线视频| 日本韩国精品一区二区在线观看| 日韩精品在线一区| 亚洲第一综合色| 亚洲精品视频一区二区| 欧洲色大大久久| 久久综合狠狠综合久久综合88| 亚洲免费在线观看视频| 激情综合五月天| 国产精品毛片久久久久久久| 丁香婷婷深情五月亚洲| 91精品国产综合久久福利 | 一级做a爱片久久| 在线播放中文一区| 久久精品国产99国产| 91免费观看国产| 麻豆视频观看网址久久| 欧美变态tickle挠乳网站| 国产中文字幕一区| 亚洲色图在线看| 欧美成人video| 日韩一区二区精品| 色婷婷亚洲综合| 91福利在线播放| 国产成人综合精品三级| 九九**精品视频免费播放| 一区二区三区精品| 国产精品久久毛片av大全日韩| 欧美一区二区三区视频在线观看| 成人黄色小视频在线观看| 国产综合色产在线精品| 美女视频网站久久| 日韩激情视频在线观看| 艳妇臀荡乳欲伦亚洲一区| 日韩欧美精品在线视频| 欧美日韩情趣电影| 久久精品一级爱片| 日韩电影免费在线观看网站| jizz一区二区| 国产成人av自拍| 国产成人精品一区二| 成人免费va视频| 欧美午夜精品一区| 欧美大片免费久久精品三p| 久久综合九色综合97婷婷女人| 国产精品久久二区二区| 亚洲图片欧美综合| 国产露脸91国语对白| 色先锋aa成人| 久久亚洲精华国产精华液 | www.亚洲激情.com| 欧美男同性恋视频网站| 国产精品国产自产拍高清av王其| 亚洲国产精品自拍| youjizz久久| 日韩一区二区精品葵司在线| 成人欧美一区二区三区1314| 免费久久精品视频| 欧美三级午夜理伦三级中视频| 2024国产精品| 麻豆91在线看| 欧美日韩一区 二区 三区 久久精品| 精品国产成人系列| 日本大胆欧美人术艺术动态| 91视频.com| 国产精品毛片久久久久久| 毛片av中文字幕一区二区| 在线亚洲免费视频| 中文字幕一区在线观看视频| 国产精品一区专区| 日韩免费电影一区| 乱一区二区av| 欧美成人性战久久| 国产一区二区0| 久久众筹精品私拍模特| 国产自产2019最新不卡| 欧美大白屁股肥臀xxxxxx| 日本欧美韩国一区三区| 91精品久久久久久久久99蜜臂| 亚洲午夜久久久| 欧美一区二区三区四区视频| 午夜精品久久久久久久99樱桃| 欧美亚洲精品一区| 日韩极品在线观看| 精品少妇一区二区三区日产乱码 | 色一情一伦一子一伦一区| 亚洲色图第一区| 在线成人av影院| 久久精品国产一区二区三| 欧美经典一区二区| 欧洲精品一区二区三区在线观看| 午夜精品成人在线| 国产免费久久精品| 欧美又粗又大又爽| 国产原创一区二区三区| 欧美激情一区二区在线| 欧美在线观看一二区| 麻豆国产91在线播放| 综合久久一区二区三区| 7777女厕盗摄久久久| 国产成人免费av在线| 午夜精品一区二区三区电影天堂| 久久久久久久久免费| 色婷婷久久一区二区三区麻豆| 久久国产视频网| 亚洲成人综合网站| 亚洲黄网站在线观看| 国产亚洲欧美一区在线观看| 欧美专区在线观看一区| 成人av影院在线| 国内偷窥港台综合视频在线播放| 亚洲一区影音先锋| 国产精品久久久久婷婷| wwww国产精品欧美| 欧美一级生活片| 51午夜精品国产| 欧美情侣在线播放| 欧美精品高清视频| 欧美性生活大片视频| 一本久久综合亚洲鲁鲁五月天| 不卡高清视频专区| 国产一区二区精品久久99| 麻豆精品一二三| 美女网站色91| 国产麻豆成人传媒免费观看| 免费精品99久久国产综合精品| 视频精品一区二区| 日韩精品色哟哟| 麻豆成人久久精品二区三区红 | 亚洲国产毛片aaaaa无费看| 一区二区三区在线免费播放| 一区二区在线观看免费视频播放| 亚洲最大成人网4388xx| 五月婷婷色综合| 黄色精品一二区| 9l国产精品久久久久麻豆| 91免费版在线| 欧美日韩国产免费一区二区 | 9久草视频在线视频精品| 91久久一区二区| 日韩欧美一区在线| 中文字幕精品三区| 日韩国产欧美在线播放| 国产成人精品一区二区三区网站观看 | 91黄色小视频| 亚洲精品一线二线三线| 自拍av一区二区三区| 麻豆成人综合网| 欧美羞羞免费网站| 久久久精品蜜桃| 悠悠色在线精品| 国产成人在线影院| 欧美一区二区日韩一区二区| 日本一区二区久久| 秋霞电影一区二区| 欧美优质美女网站| 国产精品免费免费| 国产综合色在线视频区| 欧美日韩中文字幕一区| 国产精品久久久久毛片软件| 日本麻豆一区二区三区视频| 在线观看日韩一区| |精品福利一区二区三区| 国产精品一区二区三区四区| 欧美人妖巨大在线| 亚洲成人自拍网| 欧美日韩综合在线| 亚洲成av人综合在线观看| 91久久精品一区二区三区| 国产精品私人影院| 成人爱爱电影网址| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 狠狠色狠狠色综合日日91app| 欧美另类变人与禽xxxxx| 午夜精彩视频在线观看不卡| 欧美性一区二区| 日韩高清不卡在线| 欧美一三区三区四区免费在线看 |