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

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久久久精品| 亚洲精品欧美激情| 国产精品免费观看视频| 久久精品麻豆| 蜜臀av性久久久久蜜臀aⅴ四虎 | 亚洲午夜精品国产| 国产精品自在在线| 卡一卡二国产精品| 欧美激情一区二区三区不卡| 宅男66日本亚洲欧美视频 | 欧美一区午夜精品| 久久久777| 一本久道久久综合狠狠爱| 亚洲私人影院在线观看| 狠狠色综合日日| 亚洲国产人成综合网站| 欧美精品一区二区三区很污很色的| 99精品热视频| 久久精品人人做人人爽电影蜜月| 亚洲国产精品www| 亚洲深夜福利| 亚洲国产经典视频| 亚洲一品av免费观看| 在线成人www免费观看视频| 亚洲精品视频在线播放| 国产精品一区久久久久| 亚洲大胆人体在线| 国产精品美女www爽爽爽| 欧美福利精品| 国产一区二区三区免费在线观看| 欧美日韩国产区| 久久精品国产精品亚洲综合| 欧美激情区在线播放| 久久九九精品| 欧美日韩视频在线一区二区| 老司机一区二区三区| 国产精品国产三级欧美二区| 欧美大片免费观看| 国产精品永久| 制服丝袜激情欧洲亚洲| 亚洲七七久久综合桃花剧情介绍| 性感少妇一区| 午夜亚洲性色视频| 欧美视频二区| 亚洲国产精品一区二区第一页| 国产色产综合产在线视频| 亚洲日本成人| 日韩视频在线观看一区二区| 久久久久久久精| 久久久久88色偷偷免费| 国产精品美女久久久久久免费| 亚洲精品乱码久久久久久按摩观| 一区二区三区精品视频在线观看| 今天的高清视频免费播放成人 | 一区二区三区蜜桃网| 亚洲精品国产拍免费91在线| 久久精品道一区二区三区| 久久精品国产99国产精品| 欧美午夜不卡视频| 中国女人久久久| 亚洲欧美国产精品桃花| 欧美视频在线观看一区| 一本到12不卡视频在线dvd| 一区二区日韩免费看| 欧美日韩伦理在线免费| 亚洲激情av| 一区二区高清视频| 欧美日韩在线精品| 亚洲一区二区综合| 久久精品日产第一区二区三区| 国产精品一卡二卡| 欧美一区二区日韩| 欧美xxxx在线观看| 亚洲伦理自拍| 欧美性色综合| 欧美一级二区| 欧美高清在线视频观看不卡| 亚洲免费电影在线观看| 欧美日韩亚洲一区二区三区| 一区二区高清| 久久女同互慰一区二区三区| 亚洲高清一二三区| 欧美区一区二| 亚洲综合日韩中文字幕v在线| 久久国产欧美日韩精品| 亚洲第一黄网| 国产精品国产馆在线真实露脸| 亚洲综合另类| 欧美成人国产va精品日本一级| 亚洲精品一级| 国产精品一香蕉国产线看观看 | 久久久国产精品亚洲一区| 欧美激情乱人伦| 亚洲综合色丁香婷婷六月图片| 国产欧美日韩精品丝袜高跟鞋| 久久只精品国产| 一区二区三区毛片| 欧美va天堂| 亚洲欧美视频一区二区三区| 在线精品视频一区二区| 久久野战av| 亚洲一区三区在线观看| 在线看不卡av| 国产精品综合色区在线观看| 欧美成人免费全部观看天天性色| 亚洲一区自拍| 亚洲免费观看高清完整版在线观看熊 | 亚洲精品精选| 久久久久久一区二区| 一区二区三区四区精品| 在线成人av网站| 国产日韩欧美精品在线| 欧美人成在线视频| 鲁大师影院一区二区三区| 亚洲综合第一| 一区二区三区欧美成人| 欧美国产精品| 欧美 日韩 国产 一区| 欧美影院在线| 香蕉免费一区二区三区在线观看| 亚洲精品久久久久久久久久久久 | 国产精品自在线| 欧美日韩一区二区视频在线| 亚洲网站在线看| 亚洲国产精品www| 一区在线电影| 国产一区二区三区自拍| 国产精品一区二区三区四区五区| 欧美日产一区二区三区在线观看| 麻豆精品视频| 美女网站久久| 麻豆乱码国产一区二区三区| 久久久亚洲午夜电影| 欧美一区激情| 久久精品国产第一区二区三区| 午夜精品成人在线| 亚洲欧美精品伊人久久| 亚洲欧美精品在线观看| 亚洲欧美日韩精品久久| 亚洲一区中文| 午夜精品久久久久99热蜜桃导演| 一区二区三区精品久久久| 在线视频精品一区| 亚洲午夜性刺激影院| 亚洲性图久久| 午夜在线播放视频欧美| 欧美一区免费视频| 久久久人成影片一区二区三区| 久久精品国产v日韩v亚洲 | 性欧美精品高清| 欧美在线观看日本一区| 久久精品国产清自在天天线| 久久精品视频在线观看| 母乳一区在线观看| 欧美日韩在线播放一区二区| 国产精品成人免费| 国产手机视频精品| 亚洲高清资源综合久久精品| 亚洲另类一区二区| 亚洲欧美日本在线| 久久久噜噜噜久久中文字幕色伊伊| 噜噜噜在线观看免费视频日韩| 欧美黑人多人双交| 日韩午夜视频在线观看| 亚洲在线视频观看| 久久免费国产精品1| 欧美极品色图| 国产日韩av高清| 在线观看福利一区| 亚洲一区日韩| 欧美91大片| 亚洲一区二区在| 久久资源在线| 国产精品爽黄69| 亚洲精品久久久久久下一站| 亚洲综合首页| 欧美寡妇偷汉性猛交| 亚洲一级二级在线| 欧美不卡在线| 国产夜色精品一区二区av| 99re6这里只有精品| 久久精品国产在热久久 | 久久久精品999| 最新中文字幕亚洲| 欧美一级在线视频| 欧美色综合天天久久综合精品| 国产亚洲毛片在线| 亚洲一二三区在线| 米奇777超碰欧美日韩亚洲| 亚洲午夜电影在线观看| 欧美v日韩v国产v| 国产综合在线看| 亚洲欧美国产制服动漫| 91久久国产综合久久91精品网站| 欧美一区二区三区婷婷月色 |