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

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>
            亚洲男人第一av网站| 国产亚洲欧美中文| 久久一日本道色综合久久| 欧美日韩国产bt| 欧美成人免费全部| 国产日韩一级二级三级| 在线天堂一区av电影| 99v久久综合狠狠综合久久| 久久久水蜜桃av免费网站| 久久精品一区二区三区不卡牛牛| 欧美日韩午夜剧场| 日韩手机在线导航| 一本久久青青| 欧美激情视频在线播放 | 欧美国产日韩二区| 国产一区高清视频| 欧美一区二区播放| 久久精品视频播放| 国产性做久久久久久| 亚洲欧美成人| 久久精品国产清高在天天线| 国产日本亚洲高清| 欧美一区免费| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产一区二区观看| 久久久久国产精品一区| 麻豆成人精品| 最新热久久免费视频| 欧美 日韩 国产 一区| 亚洲夫妻自拍| 一本久久a久久免费精品不卡 | 久久久青草青青国产亚洲免观| 久久久久国产精品一区二区| 激情伊人五月天久久综合| 久久久在线视频| 亚洲激情在线| 亚洲一区二区精品在线观看| 国产精品久久久久91| 香蕉成人伊视频在线观看| 久久久久久久久久久久久9999| 国内偷自视频区视频综合| 麻豆精品精华液| 日韩一级免费观看| 欧美一区永久视频免费观看| 韩国女主播一区二区三区| 六十路精品视频| 夜夜嗨网站十八久久| 久久激情综合网| 亚洲国产日日夜夜| 国产精品超碰97尤物18| 欧美一级欧美一级在线播放| 亚洲大片在线观看| 亚洲一区二区三区高清不卡| 国产综合色产在线精品| 欧美高清在线播放| 亚洲欧美欧美一区二区三区| 欧美aa国产视频| 亚洲在线视频| 在线观看免费视频综合| 欧美日韩在线直播| 久久精品亚洲国产奇米99| 亚洲精品美女免费| 久久久午夜精品| 亚洲视频在线观看| 伊人狠狠色j香婷婷综合| 欧美日韩一级黄| 久久久久久电影| 亚洲一区二区高清| 亚洲福利一区| 久久这里有精品视频| 中日韩午夜理伦电影免费| 在线不卡视频| 国产欧美日韩亚洲一区二区三区| 男女av一区三区二区色多| 午夜国产一区| 一本色道久久99精品综合| 欧美大片在线看| 久久日韩粉嫩一区二区三区| 亚洲一区精彩视频| 日韩视频免费观看| 亚洲大胆av| 国产综合色在线视频区| 国产精品九九久久久久久久| 欧美黑人在线播放| 久久一二三国产| 久久久www成人免费无遮挡大片 | 国产亚洲欧美在线| 欧美午夜精品久久久| 欧美国产精品一区| 久久夜色精品国产亚洲aⅴ| 欧美亚洲色图校园春色| 中文国产成人精品久久一| 亚洲欧洲一区| 91久久精品国产91久久性色| 欧美 日韩 国产一区二区在线视频| 欧美一二三区精品| 亚洲欧美国内爽妇网| 亚洲欧美国产一区二区三区| 制服丝袜激情欧洲亚洲| 夜夜精品视频一区二区| 亚洲精品美女91| 亚洲日本中文字幕| 亚洲精品久久7777| 99国产一区| 中日韩视频在线观看| 一区二区三区四区五区视频| 正在播放亚洲| 亚洲一区欧美二区| 午夜视频精品| 久久国产66| 久久婷婷亚洲| 欧美国产欧美亚州国产日韩mv天天看完整| 久久综合久久综合这里只有精品| 久久久久久夜| 欧美大学生性色视频| 亚洲国产精品久久| 亚洲欧洲综合另类在线| 亚洲品质自拍| 一区二区三区.www| 亚洲欧美另类在线观看| 久久aⅴ国产欧美74aaa| 久久亚洲精品伦理| 欧美激情五月| 国产精品毛片va一区二区三区| 国产模特精品视频久久久久| 国产亚洲欧美激情| 亚洲国产一区二区精品专区| 亚洲免费观看在线观看| 亚洲欧美日韩一区二区三区在线观看 | 免费看亚洲片| 亚洲精品久久7777| 亚洲午夜视频在线| 欧美自拍偷拍| 欧美激情一区三区| 国产精品视频一区二区三区| 精品成人a区在线观看| 夜夜爽av福利精品导航 | 性高湖久久久久久久久| 久久人人爽人人爽爽久久| 亚洲国产女人aaa毛片在线| 一本色道久久99精品综合| 久久岛国电影| 欧美视频第二页| 极品中文字幕一区| 亚洲永久免费观看| 欧美大成色www永久网站婷| 亚洲最新视频在线| 久久亚洲春色中文字幕| 国产精品国产亚洲精品看不卡15| 国内外成人免费激情在线视频| av不卡在线观看| 久久一二三国产| 这里只有精品视频在线| 久久综合色婷婷| 国产美女精品免费电影| 一区二区三区四区精品| 免费看的黄色欧美网站| 亚洲自拍偷拍一区| 欧美激情在线免费观看| 激情欧美一区二区| 午夜亚洲激情| 亚洲欧洲综合另类在线| 久久精品亚洲| 国产精品永久免费视频| 9l国产精品久久久久麻豆| 免费的成人av| 久久国产精品72免费观看| 国产精品免费久久久久久| 亚洲精品乱码久久久久久蜜桃91| 久久人人97超碰人人澡爱香蕉| 亚洲一区二区三区精品视频| 欧美日韩伦理在线| 亚洲另类春色国产| 欧美高清在线| 美女久久一区| 亚洲国产精品国自产拍av秋霞| 久久亚洲国产精品一区二区 | 欧美在线观看视频| 国产精品视区| 亚洲自拍电影| 一本大道久久a久久精二百| 欧美激情综合色| 亚洲国产你懂的| 欧美激情精品久久久久久变态| 久久久久久欧美| 一区二区在线观看视频在线观看| 久久久久久久999| 欧美影院午夜播放| 国产亚洲人成a一在线v站| 欧美在线|欧美| 欧美亚洲一区二区在线| 国产欧美va欧美va香蕉在| 欧美一级成年大片在线观看| 亚洲天堂视频在线观看| 国产精品美女久久久久aⅴ国产馆| 亚洲一区二区网站| 亚洲欧美日本日韩| 韩国欧美一区| 欧美黄网免费在线观看| 欧美大片免费久久精品三p|