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

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>
            香蕉精品999视频一区二区| 久久久777| 中文国产亚洲喷潮| 亚洲欧美在线免费观看| 麻豆久久婷婷| 一个色综合av| 欧美v日韩v国产v| 牛人盗摄一区二区三区视频| 在线日韩中文字幕| 亚洲欧美在线aaa| 欧美一级久久久| 欧美日韩在线免费| 国内成人自拍视频| 亚洲欧美bt| 亚洲欧洲精品成人久久奇米网 | 亚洲国产mv| 亚洲综合电影| 欧美人与禽猛交乱配视频| 黄色成人av网| 久久精品91久久久久久再现| 日韩视频第一页| 欧美成人免费网站| 亚洲欧美日韩一区二区三区在线| 亚洲在线中文字幕| 亚洲成人原创| 亚洲色诱最新| 欧美四级在线观看| 久久婷婷av| 久久精品久久99精品久久| 国产日韩精品视频一区| 欧美一区1区三区3区公司| 一本一本久久a久久精品综合麻豆| 国产精品欧美在线| 欧美一级片久久久久久久| 中文网丁香综合网| 亚洲第一在线视频| 午夜精品福利在线| 国产字幕视频一区二区| 亚洲激情在线视频| 国产综合在线视频| 亚洲视频欧美在线| 日韩视频一区二区三区| 日韩一区二区精品葵司在线| 黄色国产精品| 亚洲永久免费av| 国产综合久久久久久| 亚洲美女啪啪| 亚洲精品国偷自产在线99热| 亚洲欧洲免费视频| 亚洲二区在线| 999亚洲国产精| 亚洲黄色影院| 在线亚洲欧美视频| 99视频+国产日韩欧美| 一区二区久久久久久| 亚洲国产天堂久久综合| 久久久999国产| 久久米奇亚洲| 欧美日韩ab| 久久激情久久| 国产精品一区二区男女羞羞无遮挡| 欧美在线视屏| 欧美好骚综合网| 欧美一级片久久久久久久| 欧美日韩免费高清一区色橹橹| 欧美肥婆在线| 国产精品一区二区久久久久| 亚洲最新在线| 在线观看日韩av电影| 99天天综合性| 亚洲免费影视| 国产精品裸体一区二区三区| 欧美成人中文字幕在线| 亚洲二区视频在线| 猛干欧美女孩| 久久久精品免费视频| 国产精品伊人日日| 欧美一区二区三区电影在线观看| 久久国产免费| 一区二区三区在线观看国产| 一本久久青青| 欧美在线观看视频| 国产日本亚洲高清| 久久色在线播放| 午夜精品在线看| 国产精品亚洲аv天堂网| 先锋资源久久| 欧美国产日韩亚洲一区| 国产日韩精品在线观看| 亚洲免费av片| 欧美伊人久久大香线蕉综合69| 国产免费亚洲高清| 麻豆精品在线观看| 中日韩高清电影网| 麻豆成人综合网| 99国产一区二区三精品乱码| 久久理论片午夜琪琪电影网| 欧美一区二区免费| 激情成人综合网| 欧美日韩成人在线视频| 欧美一区二区在线免费观看| 欧美激情精品久久久久久| 亚洲视频1区2区| 国产真实乱偷精品视频免| 欧美高清在线观看| 午夜在线精品| 亚洲精品国产精品久久清纯直播 | 国产精品国产三级国产专播精品人| 欧美jizz19hd性欧美| 激情欧美一区| 欧美日韩黄色一区二区| 午夜精品久久久久久久久久久久久| 久久久水蜜桃| 亚洲综合第一| 国产精品视频专区| 欧美高清日韩| 久久精品成人欧美大片古装| 久久国产精品99国产| 亚洲剧情一区二区| 精品成人一区二区| 国产精品视频免费在线观看| 欧美大色视频| 久久久久久亚洲精品杨幂换脸| 一本大道久久精品懂色aⅴ| 欧美黄色aa电影| 久久精品国产91精品亚洲| 亚洲视频一区二区| 亚洲国内精品| 亚洲电影免费观看高清| 国产日韩精品一区| 国产精品久久久久77777| 欧美精品尤物在线| 麻豆国产精品va在线观看不卡| 欧美一级艳片视频免费观看| 亚洲午夜精品一区二区| 久久精品一区二区三区中文字幕| 中文国产一区| 妖精视频成人观看www| 91久久久久久| 国产精品一区二区三区成人| 欧美日韩国产电影| 欧美精品一线| 欧美日韩第一区| 欧美日韩ab片| 欧美午夜电影网| 久久国产精品久久久| 香蕉久久一区二区不卡无毒影院 | 日韩午夜av| 亚洲精品在线免费| 久久久精品久久久久| 久久久www成人免费毛片麻豆| 亚洲欧美日本在线| 销魂美女一区二区三区视频在线| 亚洲一区二区三区久久| 在线观看欧美亚洲| 亚洲经典视频在线观看| 亚洲区免费影片| 99精品热视频| 亚洲欧美日韩精品综合在线观看| 亚洲男人的天堂在线aⅴ视频| 亚洲欧美在线aaa| 久久久7777| 亚洲夫妻自拍| 一区二区欧美在线| 亚洲欧美视频在线观看视频| 亚洲欧美日产图| 久久久久成人精品| 欧美成人乱码一区二区三区| 欧美理论电影在线观看| 国产精品国产福利国产秒拍| 国产亚洲网站| 国产欧美精品一区| 永久免费毛片在线播放不卡| 亚洲免费av电影| 欧美亚洲在线视频| 玖玖玖免费嫩草在线影院一区| 欧美国产精品劲爆| 99视频一区二区| 久久久久久一区二区| 欧美日韩国产一区精品一区| 国产日韩1区| 亚洲美女av电影| 久久99伊人| 亚洲剧情一区二区| 久久国产免费| 国产精品国产一区二区| 在线成人av| 亚洲欧美在线免费观看| 欧美成人精品1314www| 一本色道久久综合亚洲精品高清| 久久丁香综合五月国产三级网站| 欧美国产一区视频在线观看| 国产偷国产偷精品高清尤物| 夜夜嗨av一区二区三区免费区| 久久超碰97中文字幕| 亚洲精品色图| 久久一区二区三区四区| 国产欧美日韩亚洲一区二区三区 | 国产精品免费看| 最新热久久免费视频|