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

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>
            欧美日韩免费一区| 亚洲主播在线| 欧美~级网站不卡| 欧美在线1区| 国内精品久久久久久久影视麻豆| 久热综合在线亚洲精品| 久久美女艺术照精彩视频福利播放| 亚洲高清av在线| 久久精品女人的天堂av| 在线观看一区| 亚洲国产天堂久久综合网| 欧美日本精品| 亚洲免费视频成人| 欧美午夜精品一区二区三区| 欧美日韩免费在线观看| 亚洲天天影视| 久久偷窥视频| 香港久久久电影| 麻豆精品一区二区综合av| 噜噜噜躁狠狠躁狠狠精品视频| 欧美日本一区二区视频在线观看 | 亚洲欧洲精品一区二区精品久久久| 欧美亚洲自偷自偷| 一区二区在线不卡| 亚洲伦理在线| 国产一区二区成人久久免费影院| 欧美ed2k| 国产日韩亚洲欧美精品| 99国产精品视频免费观看一公开 | 在线一区免费观看| 在线观看日韩av先锋影音电影院| 亚洲电影成人| 狠狠久久婷婷| 亚洲系列中文字幕| 日韩午夜av| 久久综合图片| 久久夜色精品国产亚洲aⅴ| 国产精品腿扒开做爽爽爽挤奶网站 | 中国成人在线视频| 欧美精品一区三区| 国产精品99久久久久久www| 先锋影音久久久| 一区二区视频免费完整版观看| 欧美一级免费视频| 欧美ed2k| 香蕉av福利精品导航| 在线看片第一页欧美| 亚洲欧美日韩区| 夜夜嗨av一区二区三区四区| 欧美精品久久一区二区| 欧美sm视频| 亚洲男人av电影| 国内精品一区二区三区| 久久精品一区蜜桃臀影院| 久久在线免费| 一区二区三区国产精品| 国产精品激情av在线播放| 性色av一区二区三区| 亚洲国产成人porn| 国产精品99久久久久久久女警| 欧美视频一区二区三区…| 性18欧美另类| 这里只有精品电影| 99riav久久精品riav| 欧美风情在线观看| 一本一本久久a久久精品综合妖精 一本一本久久a久久精品综合麻豆 | 国产精品一区2区| 欧美精品一区二区三区视频| 久久天堂成人| 噜噜噜91成人网| 欧美国产视频日韩| 欧美国产亚洲视频| 欧美成人免费全部观看天天性色| 性色av香蕉一区二区| 亚洲系列中文字幕| 亚洲日本免费| 久久亚洲精品一区二区| 亚洲毛片在线看| 国产精品美女www爽爽爽| 欧美视频三区在线播放| 欧美大片在线观看一区二区| 久久成人免费电影| 欧美在线观看一区二区| 久久天天躁狠狠躁夜夜爽蜜月 | 欧美激情综合在线| 欧美经典一区二区| 欧美日韩国产在线一区| 欧美精品日韩www.p站| 欧美精品播放| 国产精品女人毛片| 激情综合网址| 中日韩高清电影网| 久久久综合香蕉尹人综合网| 亚洲大片av| 一本久久a久久精品亚洲| 久久综合色天天久久综合图片| 久久精品日产第一区二区三区| 美女脱光内衣内裤视频久久影院 | 亚洲在线1234| 可以看av的网站久久看| 一区二区三区高清在线观看| 久久激情中文| 欧美日韩在线一区二区| 亚洲国产精品视频| 欧美中文字幕不卡| 欧美成人69| 激情丁香综合| 亚洲最新合集| 亚洲一区自拍| 国产精品高潮呻吟久久| 日韩一区二区福利| 亚洲日本欧美日韩高观看| 久久免费视频网站| 亚洲第一区在线| 亚洲激情视频网| 欧美国产第二页| 久久久综合香蕉尹人综合网| 伊人狠狠色j香婷婷综合| 免费短视频成人日韩| 欧美噜噜久久久xxx| 伊人春色精品| 麻豆久久婷婷| 欧美r片在线| 日韩一级精品| 日韩午夜中文字幕| 国产伦精品一区二区三区高清版| 午夜精品国产更新| 国产精品日本精品| 欧美一级淫片播放口| 久久九九电影| 欧美视频在线观看 亚洲欧| 一区二区三区欧美视频| 亚洲欧美韩国| 最新国产成人av网站网址麻豆 | 亚洲免费观看高清完整版在线观看| 欧美高清视频www夜色资源网| 一本色道久久88亚洲综合88| 亚洲视频在线视频| 亚洲国产精品精华液网站| 亚洲欧美国产制服动漫| 亚洲精品久久嫩草网站秘色 | 久久精品视频99| 欧美日本在线播放| 久久精品国产一区二区三| 欧美大秀在线观看| 久久久久免费观看| 国产精品每日更新| 亚洲精品久久嫩草网站秘色| 极品尤物一区二区三区| 亚洲免费影视| 久久婷婷久久一区二区三区| 久久综合九色综合久99| 久久五月婷婷丁香社区| 国产欧美日韩综合一区在线播放| 宅男精品导航| 亚洲专区一区| 国产日韩精品在线观看| 午夜久久福利| 久久久久国产精品午夜一区| 国产日产欧产精品推荐色| 久久久久久久综合日本| 亚洲精品一级| 欧美怡红院视频| 伊人狠狠色j香婷婷综合| 免费成人网www| 亚洲一区视频| 欧美 日韩 国产一区二区在线视频 | 免费不卡亚洲欧美| 一区二区久久久久久| 国产日韩欧美三区| 欧美特黄视频| 黄色一区二区在线观看| 亚洲色图在线视频| 免费试看一区| 亚洲欧美乱综合| 黄色精品在线看| 欧美小视频在线观看| 亚洲精品字幕| 久久午夜av| 亚洲视频在线观看网站| 在线看成人片| 国产真实乱子伦精品视频| 欧美日本一区二区视频在线观看| 欧美一级夜夜爽| 亚洲日本成人| 亚洲高清免费| 男同欧美伦乱| 久久国产精品一区二区| 亚洲午夜国产成人av电影男同| 国产综合久久久久久| 欧美性理论片在线观看片免费| 欧美高清在线视频| 欧美日产一区二区三区在线观看| 久久夜色精品国产噜噜av| 免费观看在线综合| 欧美日韩亚洲一区二区| 国产精品伦一区| 黄色成人av| 国产麻豆日韩欧美久久| 国语自产精品视频在线看|