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

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级| 久久这里只精品最新地址| 久久精品一区四区| 亚洲电影自拍| 亚洲精品中文字幕在线| 国产精品进线69影院| 欧美专区亚洲专区| 久久五月天婷婷| 亚洲乱码视频| 亚洲欧美日韩一区二区三区在线| 国产一区二区三区丝袜| 亚洲大胆视频| 国产精品v日韩精品v欧美精品网站| 欧美一级大片在线观看| 久久久999成人| 日韩视频欧美视频| 亚洲欧美日韩国产| 亚洲国产精品一区二区www在线| 亚洲精品欧美精品| 国产一区二区三区电影在线观看| 亚洲国产专区| 国产一区二区三区高清| 亚洲精品视频二区| 极品尤物av久久免费看| 日韩视频亚洲视频| 在线观看成人小视频| 日韩一级在线观看| 国产综合欧美| 99精品热视频只有精品10| 国产亚洲在线| 一区二区三区回区在观看免费视频| 国产一区再线| 夜色激情一区二区| 亚洲欧洲一二三| 欧美一区亚洲二区| 亚洲自拍偷拍网址| 免费日本视频一区| 久久久久久午夜| 国产精品视频网址| 亚洲精品色婷婷福利天堂| 一区二区视频免费完整版观看| 亚洲视频在线一区| 一区二区三区日韩欧美精品| 久久手机精品视频| 久久精品国产清高在天天线| 国产精品magnet| 亚洲美女啪啪| 日韩午夜在线| 欧美精品在线观看一区二区| 欧美激情在线狂野欧美精品| 国内外成人免费激情在线视频| 亚洲免费在线视频| 午夜免费日韩视频| 国产精品乱码一区二三区小蝌蚪| 99国产精品视频免费观看| 99精品国产福利在线观看免费| 免费成人高清视频| 欧美国产精品一区| 亚洲激情av| 欧美fxxxxxx另类| 亚洲国产国产亚洲一二三| 亚洲国产你懂的| 欧美成年视频| 亚洲精品系列| 亚洲欧美国产精品桃花| 国产精品拍天天在线| 亚洲欧美国产日韩中文字幕| 欧美一区二视频| 国产一区二区精品久久99| 欧美一区中文字幕| 免费在线成人av| 亚洲欧洲视频| 欧美色欧美亚洲另类七区| 亚洲少妇最新在线视频| 欧美一二三区精品| 狠狠综合久久av一区二区小说| 久久天天躁夜夜躁狠狠躁2022| 欧美激情a∨在线视频播放| 亚洲乱码国产乱码精品精天堂| 欧美日韩美女在线| 亚洲欧美日本精品| 欧美成人a视频| 99热这里只有精品8| 国产精品系列在线| 久久伊人免费视频| 亚洲精品中文字| 欧美伊久线香蕉线新在线| 国外成人免费视频| 欧美精品日韩| 欧美一区二区三区在线视频| 欧美成人一二三| 亚洲欧美精品在线观看| 国内精品久久久久影院色| 欧美成人影音| 午夜视频久久久久久| 亚洲高清网站| 久久不射中文字幕| 99re66热这里只有精品3直播| 国产精品亚洲网站| 免费在线看一区| 先锋影音国产精品| 最新亚洲激情| 久久综合九九| 亚洲欧美三级在线| 亚洲日韩第九十九页| 国产亚洲精品久久久| 欧美片网站免费| 久久久亚洲影院你懂的| 亚洲午夜久久久久久尤物| 久久精品99无色码中文字幕| 夜夜精品视频一区二区| 激情视频一区二区| 国产精品香蕉在线观看| 欧美日韩精品免费观看| 久久午夜av| 久久成人18免费网站| 亚洲天堂男人| 日韩午夜免费| 亚洲黄一区二区| 女同性一区二区三区人了人一| 欧美一区二区视频网站| 亚洲专区免费| 一区二区三区.www| 日韩视频专区| 亚洲激情一区二区| 亚洲国产专区校园欧美| 黑人巨大精品欧美一区二区| 国产麻豆9l精品三级站| 国产精品sm| 国产精品国内视频| 欧美日韩亚洲系列| 欧美日韩国产色站一区二区三区| 欧美a一区二区| 免费欧美电影| 欧美黄免费看| 欧美精品电影| 欧美日韩亚洲不卡| 欧美日韩在线一二三| 欧美日韩亚洲国产一区| 欧美日韩精品在线观看| 欧美日韩喷水| 国产精品久久久久久久电影| 欧美日韩在线视频一区| 欧美视频在线看| 国产精品福利av| 国产日韩成人精品| 国内外成人免费激情在线视频| 激情小说另类小说亚洲欧美| 尤物九九久久国产精品的分类| 在线观看的日韩av| 亚洲国产日韩精品| 亚洲久久视频| 亚洲欧美日韩综合aⅴ视频| 午夜在线视频一区二区区别 | 久久久亚洲成人| 欧美11—12娇小xxxx| 亚洲国产精品成人精品| 欧美高清成人| 亚洲国产精品一区制服丝袜| 亚洲黄色在线看| 亚洲小少妇裸体bbw| 久久精品国产久精国产一老狼 | 日韩一级在线| 亚洲午夜视频| 久久久国产91| 欧美精品一二三| 国产精品自拍一区| 伊人天天综合| 亚洲无玛一区| 另类国产ts人妖高潮视频| 91久久精品一区二区别| 亚洲网友自拍| 免费成人av资源网| 国产精品久久久久久久浪潮网站| 国户精品久久久久久久久久久不卡 | 国产精品99久久久久久久久久久久 | 免费亚洲电影在线| 欧美色欧美亚洲另类七区| 国产在线欧美| 中文精品在线| 欧美大胆a视频| 亚洲影视综合| 欧美精品二区三区四区免费看视频| 国产精品一区二区欧美| 亚洲日本va在线观看| 欧美在线你懂的| 亚洲看片一区| 久久在线播放| 国产一区二区你懂的| 在线视频你懂得一区二区三区| 久久婷婷国产综合精品青草| 中文精品视频| 欧美激情一区二区| 亚洲成人直播| 久久综合给合久久狠狠色| 亚洲一区二区四区| 欧美日韩在线免费| 亚洲精品永久免费|