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

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

?? wince-port

?? Parallel Processing, Important document for learning about high-performance computing.
??
字號:
NOTE: The comments in this file relate to the original WinCE port
done by Tristan Savatier. The semaphore routines have been 
completely rewritten since (2005-04-25), having been progressively
broken more and more by changes to the library. All of the semaphore
routines implemented for W9x/WNT/2000 and up should now also work for
WinCE. 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 our
Commercial WinCE developments, I would be very interested
if WinCE support could be added to the main source tree
of pthread-win32.  Also, I would like to be credited
for 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 the
Casio is WinCE version 2.11, but I used VC++ 6.0 with
the WinCE SDK for version 2.01.

I used pthread-win32 to port a heavily multithreaded
commercial application (real-time MPEG video player)
from Linux to WinCE.  I consider the changes that
I 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 easiely
to 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-WinCE
environment, provided that the macros used for WinCE compilation
are not used, of course!

Overall description of the WinCE port:
-------------------------------------

Most of the changes had to be made in areas where
pthread-win32 was relying on some standard-C librairies
(e.g. _ftime, calloc, errno), which are not available
on WinCE. We have changed the code to use native Win32
API instead (or in some cases we made wrappers).

The Win32 Semaphores are not available,
so we had to re-implement Semaphores using mutexes
and events.

Limitations / known problems of the WinCE port:
----------------------------------------------

Not all the semaphore routines have been ported
(semaphores are defined by Posix but are not part
pf pthread).  I have just done enough to make
pthread routines (that rely internally on semaphores)
work, like signal conditions.

I noticed that the Win32 threads work slightly
differently on WinCE.  This may have some impact
on some tricky parts of pthread-win32, but I have
not really investigated.  For example, on WinCE,
the process is killed if the main thread falls off
the bottom (or calls pthread_exit), regardless
of the existence of any other detached thread.
Microsoft manual indicates that this behavior is
deffirent from that of Windows Threads for other
Win32 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 errno
is compiled, regardless of _MT and _REENTRANT.

Rational: On WinCE, there is no support for <stdio.h>, <errno.h> or
any other standard C library, i.e. even if _MT or _REENTRANT
is defined, errno is not provided by any library.  NEED_ERRNO
must 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 not
be 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 replacement
for calloc, which is not available on Win32.


------------------------------------
- use a new macro NEED_CREATETHREAD.

If defined, implement.h defines the macro _beginthreadex
and _endthreadex.

Rational: On WinCE, the wrappers _beginthreadex and _endthreadex
do 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);
	    }
#endif

Rational: On WinCE, DuplicateHandle does not exist.  I could not understand
why DuplicateHandle must be used.  It seems to me that getting the current
thread handle with GetCurrentThread() is sufficient, and it seems to work
perfectly fine, so maybe DuplicateHandle was just plain useless to begin with ?

------------------------------------
- In private.c, added some code at the beginning of ptw32_processInitialize
to detect the case of multiple calls to ptw32_processInitialize.

Rational: In order to debug pthread-win32, it is easier to compile
it 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 circumstance
to handle the case where ptw32_processInitialize() is called on
an already initialized library:

int
ptw32_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 to
convert timespec_to_filetime and filetime_to_timespec, and modified
code that was using _ftime() to use Win32 API instead.

Rational: _ftime is not available on WinCE.  It is necessary to use
the native Win32 time API instead.

Note: the routine timespec_to_filetime is provided as a convenience and a mean
to 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 significantly
the implementation of the semaphores so that it does not use CreateSemaphore.

Rational: CreateSemaphore is not available on WinCE.  I had to re-implement
semaphores 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, and
this subset works). Some other semaphore routines (e.g. sem_trywait) are
not yet supported on my WinCE port (and since I don't need them, I am not
planning 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
#endif

Rational: TLS_OUT_OF_INDEXES is not defined in any standard include file
on WinCE.

------------------------------------
- added file need_errno.h

Rational: On WinCE, there is no errno.h file. need_errno.h is just a
copy of windows version of errno.h, with minor modifications due to the fact
that 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 is
included (instead of <errno.h>).


-- eof

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产另类精品专区| 成人午夜伦理影院| 韩国欧美国产1区| 日本乱人伦一区| 日韩欧美高清dvd碟片| 中文字幕色av一区二区三区| 午夜亚洲福利老司机| 丁香天五香天堂综合| 欧美日韩黄色一区二区| 国产精品毛片a∨一区二区三区| 午夜激情综合网| 99热精品一区二区| 日韩欧美在线观看一区二区三区| 日韩理论电影院| 国产激情视频一区二区三区欧美| 欧美日韩精品一二三区| 亚洲欧洲日韩一区二区三区| 日本伊人色综合网| 欧美网站大全在线观看| 亚洲精品中文字幕乱码三区 | 高清国产一区二区| 91超碰这里只有精品国产| 综合自拍亚洲综合图不卡区| 国产69精品久久久久毛片| 欧美电视剧在线看免费| 日韩专区一卡二卡| 欧美日韩国产综合视频在线观看 | 久久久久久97三级| 免费三级欧美电影| 3atv一区二区三区| 午夜精品久久久久影视| 欧美人xxxx| 免费在线观看视频一区| 91精品国产91久久久久久最新毛片| 亚洲一区二区三区美女| 色噜噜狠狠一区二区三区果冻| 国产精品美女久久久久aⅴ| 豆国产96在线|亚洲| 中文字幕一区二区在线观看| 不卡影院免费观看| 成人欧美一区二区三区1314| 色婷婷国产精品久久包臀| 一区二区三区在线不卡| 欧美亚洲自拍偷拍| 亚洲国产成人av| 欧美一区二区人人喊爽| 久久 天天综合| 国产女人18水真多18精品一级做 | 在线播放欧美女士性生活| 五月天一区二区三区| 日韩精品一区二区在线观看| 国产原创一区二区| 亚洲日穴在线视频| 色综合天天综合给合国产| 亚洲自拍另类综合| 欧美成人r级一区二区三区| 国产麻豆精品theporn| 亚洲青青青在线视频| 欧美日韩午夜影院| 精品一区二区三区日韩| 一色屋精品亚洲香蕉网站| 欧美日韩精品免费观看视频| 国产揄拍国内精品对白| 亚洲精品ww久久久久久p站| 欧美日韩情趣电影| 精品一区二区久久| 亚洲欧美日韩国产一区二区三区| 欧美日韩成人一区| 国产麻豆成人精品| 亚洲欧美偷拍三级| 精品剧情v国产在线观看在线| 91麻豆福利精品推荐| 美女视频黄频大全不卡视频在线播放| 国产欧美一区二区精品久导航| 欧美视频日韩视频在线观看| 国产一区二区三区国产| 亚洲一区视频在线观看视频| 久久精品水蜜桃av综合天堂| 欧美精品第一页| gogo大胆日本视频一区| 麻豆成人av在线| 一二三四区精品视频| 中文字幕不卡在线| 日韩午夜电影av| 欧美做爰猛烈大尺度电影无法无天| 国产麻豆精品在线| 天堂一区二区在线| 最新不卡av在线| 国产日韩欧美a| 欧美一区国产二区| 欧美三级电影网| www.av亚洲| 国产99久久久国产精品潘金 | 亚洲男女毛片无遮挡| 欧美一级片在线| 欧美亚洲愉拍一区二区| 99精品视频在线播放观看| 极品美女销魂一区二区三区| 日韩电影免费一区| 亚洲一区二区五区| 亚洲日本一区二区三区| 久久久一区二区三区捆绑**| 欧美大胆人体bbbb| 日韩丝袜情趣美女图片| 国产91丝袜在线18| 免费亚洲电影在线| 久久久久99精品一区| 国产成人丝袜美腿| 亚洲黄色性网站| 亚洲欧洲精品一区二区三区| 久久精品视频在线免费观看| 久久免费精品国产久精品久久久久| 51精品久久久久久久蜜臀| 欧美日韩免费视频| 日本高清免费不卡视频| 91黄色免费版| 欧美偷拍一区二区| 欧美日韩在线直播| 在线不卡免费av| 日韩欧美国产三级| 欧美精品一区二区三区蜜桃| 精品福利一区二区三区免费视频| 日韩一区二区三区免费观看| 欧美一区二区三区免费视频| 日韩一二三四区| 26uuuu精品一区二区| 久久久精品免费免费| 国产精品久久久久久久久久免费看| 欧美激情一区二区三区不卡| 中文字幕五月欧美| 一区二区三区在线影院| 天天综合日日夜夜精品| 麻豆精品视频在线观看视频| 国模无码大尺度一区二区三区| 国产白丝网站精品污在线入口| 99久久免费国产| 欧美中文字幕不卡| 制服视频三区第一页精品| 欧美成人video| 国产精品久久毛片av大全日韩| 亚洲人精品午夜| 午夜av一区二区三区| 毛片基地黄久久久久久天堂| 高潮精品一区videoshd| 色婷婷综合久久久久中文一区二区| 欧美酷刑日本凌虐凌虐| 国产日韩成人精品| 亚洲网友自拍偷拍| 国产一区二区三区在线观看免费视频| 成人中文字幕合集| 欧美日韩免费一区二区三区| 精品国产免费人成在线观看| 亚洲欧洲制服丝袜| 麻豆精品视频在线观看视频| 99久久精品一区二区| 日韩欧美电影一区| 国产精品伦一区二区三级视频| 午夜欧美视频在线观看| 国产很黄免费观看久久| 欧美三级一区二区| 国产精品色哟哟| 婷婷一区二区三区| 成人av网址在线观看| 欧美一区二区三区性视频| 日韩理论在线观看| 国内精品久久久久影院色 | 国产欧美一区二区在线观看| 亚洲综合自拍偷拍| 懂色av一区二区三区蜜臀| 日韩视频免费观看高清完整版| 国产精品第13页| 狠狠色狠狠色合久久伊人| 欧美无人高清视频在线观看| 17c精品麻豆一区二区免费| 日韩在线一二三区| 一本到不卡精品视频在线观看 | 国产精品美日韩| 久久av中文字幕片| 制服.丝袜.亚洲.另类.中文| 樱花影视一区二区| 99这里只有精品| 欧美国产亚洲另类动漫| 国精产品一区一区三区mba视频| 欧美日韩五月天| 亚洲午夜激情网站| 欧美性色黄大片| 一区二区三区 在线观看视频| 99久久婷婷国产精品综合| 欧美韩日一区二区三区四区| 极品少妇xxxx精品少妇偷拍| 日韩一区二区在线观看| 日本亚洲视频在线| 在线成人av影院| 日韩福利电影在线| 日韩一区二区三区四区| 午夜精品成人在线视频| 欧美高清视频不卡网| 偷拍自拍另类欧美| 91精品国产色综合久久不卡蜜臀| 肉色丝袜一区二区|