青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

S.l.e!ep.¢%

像打了激速一樣,以四倍的速度運轉,開心的工作
簡單、開放、平等的公司文化;尊重個性、自由與個人價值;
posts - 1098, comments - 335, trackbacks - 0, articles - 1
  C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理
0012eff8 7c827d0b 7c83d236 000002bc 00000000 ntdll!KiFastSystemCallRet
0012effc 7c83d236 000002bc 00000000 00000000 ntdll!NtWaitForSingleObject+0xc
0012f038 7c83d281 000002bc 00000004 00408ab3 ntdll!RtlpWaitOnCriticalSection+0x1a3
0012f058 00403db4 0045b3e4 0045b3e0 0012f074 ntdll!RtlEnterCriticalSection+0xa8

Feedback

# re: 今天發現 EnterCriticalSection 里頭還是調用了 WaitForSingleObject[未登錄]  回復  更多評論   

2009-07-22 11:19 by nscboy
ntdll!NtWaitForSingleObject+0xc
要確認這個說法需要確認后面那個+0xc的具體含義吧。

# re: 今天發現 EnterCriticalSection 里頭還是調用了 WaitForSingleObject  回復  更多評論   

2009-07-22 11:52 by 萬連文
這個是具體的代碼,有些可以確定的東西沒有必要去猜測:

page , 132
subttl "RtlEnterCriticalSection"

;++
;
; NTSTATUS
; RtlEnterCriticalSection(
; IN PRTL_CRITICAL_SECTION CriticalSection
; )
;
; Routine Description:
;
; This function enters a critical section.
;
; Arguments:
;
; CriticalSection - supplies a pointer to a critical section.
;
; Return Value:
;
; STATUS_SUCCESS or raises an exception if an error occured.
;
;--

align 16
cPublicProc _RtlEnterCriticalSection,1
cPublicFpo 1,0

mov ecx,fs:PcTeb ; get current TEB address
mov edx,CriticalSection ; get address of critical section
cmp CsSpinCount[edx],0 ; check if spin count is zero
jne short Ent40 ; if ne, spin count specified

;
; Attempt to acquire critical section.
;

Lock1: ;
lock inc dword ptr CsLockCount[edx] ; increment lock count
jnz short Ent20 ; if nz, already owned

;
; Set critical section owner and initialize recursion count.
;

Ent10:
if DBG
cmp CsOwningThread[edx],0
je @F
stdCall _RtlpCriticalSectionIsOwned, <edx>
mov ecx,fs:PcTeb ; get current TEB address
mov edx,CriticalSection ; get address of critical section
@@:
endif ; DBG
mov eax,TbClientId + 4[ecx] ; get current client ID
mov CsOwningThread[edx],eax ; set critical section owner
mov dword ptr CsRecursionCount[edx],1 ; set recursion count

if DBG

inc dword ptr TbCountOfOwnedCriticalSections[ecx] ; increment owned count
mov eax,CsDebugInfo[edx] ; get debug information address
inc dword ptr CsEntryCount[eax] ; increment entry count

endif ; DBG

xor eax,eax ; set success status

stdRET _RtlEnterCriticalSection

;
; The critical section is already owned, but may be owned by the current thread.
;

align 16
Ent20: mov eax,TbClientId + 4[ecx] ; get current client ID
cmp CsOwningThread[edx],eax ; check if current thread is owner
jne short Ent30 ; if ne, current thread not owner
inc dword ptr CsRecursionCount[edx] ; increment recursion count

if DBG

mov eax,CsDebugInfo[edx] ; get debug information address
inc dword ptr CsEntryCount[eax] ; increment entry count

endif ; DBG

xor eax,eax ; set success status

stdRET _RtlEnterCriticalSection

;
; The critcal section is owned by another thread and the current thread must
; wait for ownership.
;

Ent30: stdCall _RtlpWaitForCriticalSection, <edx> ; wait for ownership
mov ecx,fs:PcTeb ; get current TEB address
mov edx,CriticalSection ; get address of critical section
jmp Ent10 ; set owner and recursion count

;
; A nonzero spin count is specified.
;

align 16
Ent40: mov eax,TbClientId + 4[ecx] ; get current client ID
cmp CsOwningThread[edx],eax ; check if current thread is owner
jne short Ent50 ; if ne, current thread not owner

;
; The critical section is owned by the current thread. Increment the lock
; count and the recursion count.
;

Lock6: ;
lock inc dword ptr CsLockCount[edx] ; increment lock count
inc dword ptr CsRecursionCount[edx] ; increment recursion count

if DBG

mov eax,CsDebugInfo[edx] ; get debug information address
inc dword ptr CsEntryCount[eax] ; increment entry count

endif ; DBG

xor eax,eax ; set success status

stdRET _RtlEnterCriticalSection

;
; A nonzero spin count is specified and the current thread is not the owner.
;

align 16
Ent50: push CsSpinCount[edx] ; get spin count value
Ent60: mov eax,-1 ; set comparand value
mov ecx,0 ; set exchange value

Lock7:
lock cmpxchg dword ptr CsLockCount[edx],ecx ; attempt to acquire critical section
jnz short Ent70 ; if nz, critical section not acquired

;
; The critical section has been acquired. Set the owning thread and the initial
; recursion count.
;

add esp,4 ; remove spin count from stack
mov ecx,fs:PcTeb ; get current TEB address
mov eax,TbClientId + 4[ecx] ; get current client ID
mov CsOwningThread[edx],eax ; set critical section owner
mov dword ptr CsRecursionCount[edx],1 ; set recursion count

if DBG

inc dword ptr TbCountOfOwnedCriticalSections[ecx] ; increment owned count
mov eax,CsDebugInfo[edx] ; get debug information address
inc dword ptr CsEntryCount[eax] ; increment entry count

endif ; DBG

xor eax,eax ; set success status

stdRET _RtlEnterCriticalSection

;
; The critical section is currently owned. Spin until it is either unowned
; or the spin count has reached zero.
;
; If waiters are present, don't spin on the lock since we will never see it go free
;

Ent70: cmp CsLockCount[edx],1 ; check if waiters are present,
jge short Ent76 ; if ge 1, then do not spin

Ent75: YIELD
cmp CsLockCount[edx],-1 ; check if lock is owned
je short Ent60 ; if e, lock is not owned
dec dword ptr [esp] ; decrement spin count
jnz short Ent75 ; if nz, continue spinning
Ent76: add esp,4 ; remove spin count from stack
mov ecx,fs:PcTeb ; get current TEB address
jmp Lock1 ;

stdENDP _RtlEnterCriticalSection

# re: 今天發現 EnterCriticalSection 里頭還是調用了 WaitForSingleObject  回復  更多評論   

2009-07-22 18:54 by wocow3
新的SDk EnterCriticalSection在多核的機器上會首先有個自選量,之后才等待掛起。反正MS也沒公布EnterCriticalSection的實現細節,現在調用了,沒準以后又不用WaitForSingleObject實現了

# re: 今天發現 EnterCriticalSection 里頭還是調用了 WaitForSingleObject  回復  更多評論   

2009-07-23 06:00 by 沈國華
x^n+y^n=z^n,(x,y,z,n為有理數,n>2的正整數)要有解則條件...均為有理數為充要條件。這樣求解范圍可在整個復數中進行。 關于如何可在復數去推行 可由n個公式共同來推導。 最簡單的推導是最難證明的 以前理解了1+0=1 現在明白了0+0=0 要證明更困難了 手機:13567398633
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            国产在线精品自拍| 亚洲天堂av在线免费观看| 欧美成人中文| 亚洲欧洲视频| 亚洲日本无吗高清不卡| 亚洲伊人观看| 久久久欧美一区二区| 欧美精品亚洲精品| 国产三级精品在线不卡| 亚洲美女av网站| 欧美中文字幕视频在线观看| 欧美激情视频一区二区三区不卡| 在线亚洲+欧美+日本专区| 欧美制服丝袜第一页| 欧美日韩国产大片| 韩日欧美一区| 亚洲天堂av在线免费观看| 久久综合精品一区| 在线视频精品一区| 美女诱惑黄网站一区| 国产精品综合色区在线观看| 亚洲欧洲精品一区| 久久精品夜色噜噜亚洲aⅴ| 91久久久在线| 久久成人在线| 国产精品久久久久久久久久尿| 亚洲国产精品久久人人爱蜜臀| 香港成人在线视频| 亚洲激情视频在线| 久久久999国产| 国产精品久久91| 日韩视频一区二区三区在线播放免费观看| 久久不射中文字幕| 9l视频自拍蝌蚪9l视频成人| 巨乳诱惑日韩免费av| 国产亚洲成年网址在线观看| 在线亚洲激情| 亚洲国产精品一区制服丝袜 | 久久亚洲春色中文字幕| 一本到12不卡视频在线dvd| 蜜桃伊人久久| 精品成人在线视频| 久久精品电影| 亚洲午夜激情| 欧美日韩在线免费| 日韩亚洲精品电影| 欧美激情1区2区| 久久久亚洲国产美女国产盗摄| 国产乱人伦精品一区二区| 亚洲一区二区精品在线观看| 91久久夜色精品国产九色| 久久婷婷国产综合尤物精品| 国产亚洲美州欧州综合国| 午夜电影亚洲| 中文在线资源观看视频网站免费不卡| 欧美黄色大片网站| 91久久精品美女| 欧美高清视频www夜色资源网| 久久狠狠亚洲综合| 国产日韩欧美综合| 久久av一区二区三区漫画| 亚洲午夜电影在线观看| 欧美午夜大胆人体| 亚洲午夜久久久久久久久电影院 | 欧美在线观看视频| 国产女主播视频一区二区| 香蕉久久夜色精品| 亚洲图片欧美一区| 欧美一级专区免费大片| 久久久另类综合| 国产亚洲精品一区二区| 久久爱www.| 欧美一区二区三区的| 国产精品一区二区女厕厕| 亚洲欧美在线网| 亚洲在线一区二区三区| 国产精品网站一区| 久久国产精彩视频| 欧美专区在线观看| 在线观看一区视频| 欧美大片va欧美在线播放| 欧美阿v一级看视频| 亚洲精品专区| 99成人精品| 国产精品入口66mio| 久久精品99国产精品日本| 欧美一区二区三区日韩| 黑人巨大精品欧美一区二区小视频 | 欧美视频在线观看免费| 亚洲国产毛片完整版| 亚洲精品少妇网址| 亚洲日本电影在线| 欧美体内谢she精2性欧美| 午夜精品久久久久久久99热浪潮| 亚洲一区视频在线| 韩国女主播一区二区三区| 欧美夫妇交换俱乐部在线观看| 欧美大色视频| 亚洲一级在线| 欧美一区二区三区四区夜夜大片| 狠狠色狠狠色综合日日tαg| 欧美aa国产视频| 欧美伦理在线观看| 香蕉久久夜色精品国产| 久久黄色小说| 99国产精品视频免费观看| 亚洲深夜影院| 激情91久久| 亚洲精品麻豆| 国产欧美日韩视频在线观看| 久热爱精品视频线路一| 欧美精品18| 午夜精品美女久久久久av福利| 久久99在线观看| 日韩西西人体444www| 亚洲伊人色欲综合网| 亚洲大黄网站| 一区二区免费看| 国产一区二区久久精品| 亚洲国产欧美日韩| 国产精品自拍一区| 亚洲电影欧美电影有声小说| 国产精品jvid在线观看蜜臀| 老**午夜毛片一区二区三区| 欧美另类高清视频在线| 欧美中文在线观看| 女人香蕉久久**毛片精品| 午夜宅男久久久| 免费人成网站在线观看欧美高清| 亚洲一区在线免费| 久久在线播放| 亚洲欧美日韩国产另类专区| 久久一区二区三区超碰国产精品| 一区二区三区高清在线观看| 久久成人免费| 亚洲一区二区在| 狂野欧美激情性xxxx欧美| 亚洲欧美成人一区二区在线电影 | 久久成年人视频| 夜色激情一区二区| 久久久国产亚洲精品| 亚洲午夜精品久久久久久浪潮| 久久一区中文字幕| 午夜亚洲一区| 欧美精品一区二区三区在线播放 | 久久精品五月婷婷| 欧美日韩综合视频| 欧美激情亚洲综合一区| 国产日韩欧美一区二区三区在线观看| 亚洲精品国产精品国自产在线| 激情欧美亚洲| 亚洲图片在区色| 亚洲美女诱惑| 久久午夜视频| 久久福利精品| 国产精品高潮呻吟久久av无限| 亚洲福利精品| 在线观看国产日韩| 亚洲欧美日韩国产另类专区| 一区二区三区欧美在线| 麻豆成人综合网| 久久综合九色欧美综合狠狠| 国产麻豆精品theporn| 亚洲精品国产精品国自产观看| 美女诱惑一区| 欧美本精品男人aⅴ天堂| 国产精品剧情在线亚洲| 亚洲精品一区二区网址| 亚洲黄色精品| 久久久久久国产精品mv| 久久精品观看| 国产女人aaa级久久久级| 中文一区二区| 中文在线一区| 欧美大片第1页| 欧美国产大片| 亚洲国产高清一区二区三区| 欧美在线观看网址综合| 性色av一区二区三区在线观看| 欧美日韩一本到| 亚洲国产欧美久久| 亚洲精品小视频在线观看| 老司机免费视频一区二区三区 | 中国女人久久久| 宅男噜噜噜66国产日韩在线观看| 欧美国产日韩精品| 亚洲第一天堂av| 亚洲国产色一区| 欧美成人激情视频免费观看| 欧美成人免费小视频| 在线免费日韩片| 免费毛片一区二区三区久久久| 欧美高清在线精品一区| 亚洲国产免费| 欧美成人第一页| 亚洲精品乱码久久久久久黑人| 在线视频亚洲欧美| 国产精品大全| 亚洲欧美国产一区二区三区| 久久成人在线|