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

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>
            欧美一级在线视频| 亚洲国产精品悠悠久久琪琪| 91久久国产综合久久| 榴莲视频成人在线观看| 亚洲成色最大综合在线| 欧美高清视频一区二区三区在线观看| 久久精品日韩一区二区三区| 亚洲成人自拍视频| 亚洲精选在线观看| 国产精品jizz在线观看美国| 夜夜嗨av色一区二区不卡| 日韩一区二区免费高清| 国产色视频一区| 免费欧美在线视频| 欧美日韩免费视频| 欧美中文字幕在线观看| 久久久久综合一区二区三区| av成人免费观看| 午夜欧美电影在线观看| 1000部精品久久久久久久久 | 国产欧美三级| 另类天堂视频在线观看| 欧美黄色日本| 久久精品中文| 欧美精品在线视频| 久久经典综合| 欧美日韩成人在线播放| 欧美一区二区三区日韩视频| 欧美成人亚洲| 久久久久欧美精品| 欧美日韩亚洲一区二区三区在线 | 91久久精品一区二区别| 韩日精品在线| 亚洲人午夜精品免费| 国产女人精品视频| 亚洲人成在线观看| 韩国在线一区| 一区二区三区视频在线播放| 激情综合网激情| 亚洲一区二区三区久久| 99热这里只有成人精品国产| 久久成人在线| 午夜宅男久久久| 欧美精品久久久久久久久久| 免费久久99精品国产自在现线| 国产乱码精品一区二区三区五月婷 | 欧美色中文字幕| 免费观看成人| 国产一区二区三区精品久久久| 一本色道88久久加勒比精品| 亚洲精品日韩精品| 欧美一区二区三区久久精品茉莉花| 中文国产成人精品久久一| 牛人盗摄一区二区三区视频| 久久精品在线播放| 国产婷婷色综合av蜜臀av| 一区二区三区久久| 亚洲无线视频| 欧美日韩国产三区| 亚洲欧洲免费视频| 99精品视频免费观看| 欧美成人嫩草网站| 亚洲第一色在线| 亚洲精品人人| 欧美日韩国产成人| 日韩视频在线观看国产| aa级大片欧美三级| 欧美午夜视频在线| 亚洲一区激情| 久久精品国产v日韩v亚洲| 国产三级精品在线不卡| 久久精品国产99精品国产亚洲性色 | 欧美日韩国产123区| 亚洲精品乱码久久久久久黑人| 亚洲精品韩国| 欧美日韩免费观看一区二区三区| 亚洲黄色视屏| 一本久久a久久免费精品不卡| 欧美三级韩国三级日本三斤| 亚洲精品四区| 亚洲一线二线三线久久久| 国产精品盗摄久久久| 欧美一级大片在线免费观看| 久久午夜电影网| 亚洲欧洲一区二区天堂久久 | 美女999久久久精品视频| 欧美中文字幕精品| 男人的天堂亚洲| 欧美母乳在线| 亚洲国产精品日韩| 一区二区在线视频| 亚洲精品免费在线观看| 久久国产一二区| 在线观看亚洲a| 欧美全黄视频| 小黄鸭精品密入口导航| 欧美777四色影视在线| 日韩视频一区二区三区在线播放| 国产精品美女一区二区| 久久久久9999亚洲精品| 亚洲日本成人女熟在线观看| 亚洲在线视频观看| 亚洲国产精品久久人人爱蜜臀 | 亚洲国产成人一区| 亚洲免费在线观看视频| 精品va天堂亚洲国产| 欧美日韩精品| 久久天天躁夜夜躁狠狠躁2022| 亚洲人永久免费| 久久欧美肥婆一二区| 亚洲色在线视频| 亚洲电影在线观看| 国产精品青草久久久久福利99| 久久综合中文| 亚洲欧美一区在线| 亚洲精品自在久久| 免费永久网站黄欧美| 亚洲欧美日本伦理| 亚洲乱码国产乱码精品精| 韩国成人精品a∨在线观看| 欧美午夜精品理论片a级按摩 | 亚洲一区二区伦理| 亚洲人成在线播放网站岛国| 免费毛片一区二区三区久久久| 午夜欧美大片免费观看| 99在线观看免费视频精品观看| 在线电影欧美日韩一区二区私密| 国产精品爽黄69| 欧美日韩在线一区| 欧美精品网站| 鲁鲁狠狠狠7777一区二区| 久久电影一区| 久久精品国产第一区二区三区最新章节 | 亚洲最快最全在线视频| 亚洲高清在线观看| 免费看黄裸体一级大秀欧美| 久久久久久久成人| 久久av一区二区三区亚洲| 欧美与欧洲交xxxx免费观看| 亚洲欧美日韩精品一区二区| 亚洲一区日韩在线| 亚洲夜间福利| 亚洲欧美一区二区视频| 亚洲亚洲精品在线观看| 亚洲男人av电影| 亚洲欧美日本在线| 亚洲男同1069视频| 欧美在线一二三| 久久久99国产精品免费| 免费在线亚洲| 亚洲国产成人av| 亚洲国产婷婷香蕉久久久久久99| 欧美激情片在线观看| 亚洲国产日日夜夜| 99亚洲一区二区| 亚洲综合色视频| 欧美一区中文字幕| 老鸭窝亚洲一区二区三区| 免费国产自线拍一欧美视频| 欧美久久电影| 国产精品免费视频xxxx| 国产欧美精品一区| 精品999网站| 亚洲精品美女久久7777777| 亚洲午夜精品久久久久久app| 亚洲欧美久久久久一区二区三区| 亚洲自拍高清| 久久久中精品2020中文| 亚洲国产高潮在线观看| 日韩亚洲欧美一区| 午夜精品久久久久久久久久久 | 99re66热这里只有精品4| 亚洲欧美大片| 欧美va日韩va| 国产精品久久久久久影视| 国内成人在线| 一区二区三区国产在线| 久久精品视频导航| 亚洲国内精品| 欧美在线亚洲在线| 欧美日韩成人综合天天影院| 国产色产综合色产在线视频| 亚洲另类一区二区| 久久国内精品自在自线400部| 亚洲国产精品va在线看黑人动漫| 一区二区三区四区五区视频| 久久精品国产77777蜜臀| 欧美午夜www高清视频| 一区精品在线播放| 亚洲欧美一区二区视频| 亚洲欧洲日夜超级视频| 久久久欧美精品sm网站| 国产精品一区二区你懂得| 亚洲日本aⅴ片在线观看香蕉| 欧美一区91| 一本久道久久综合婷婷鲸鱼| 久久先锋资源| 狠狠干综合网| 欧美在线视频网站| 亚洲在线观看|