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

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一级做a爰片久久| 欧美日韩国产在线一区| 亚洲欧洲在线视频| 亚洲大胆在线| 久久精品国产免费| 欧美一区二区三区久久精品| 国产亚洲精品久| 欧美电影在线免费观看网站| 日韩一级大片| 欧美一级大片在线观看| 在线精品视频一区二区| 欧美日韩精品三区| 亚洲天堂偷拍| 亚洲欧洲在线免费| 久久在线精品| 亚久久调教视频| 亚洲福利在线看| 欧美精品一区二区精品网| 国产色产综合色产在线视频| 麻豆精品传媒视频| 久久精品免费电影| 久久精品亚洲精品国产欧美kt∨| 久久综合久久久| 亚洲亚洲精品在线观看| 国产亚洲欧美日韩日本| 欧美日本一区二区视频在线观看 | 久久精品天堂| 99国产精品一区| 久久人人97超碰国产公开结果| 亚洲最新在线| 亚洲免费小视频| 欧美制服第一页| 蜜臀av一级做a爰片久久 | 欧美日本网站| 欧美精品久久久久久久| 欧美精品粉嫩高潮一区二区 | 亚洲综合视频1区| 亚洲视频一二| 欧美中在线观看| 亚洲先锋成人| 欧美在线视频免费| 欧美日韩一区精品| 国产午夜精品久久久| 99国产精品| 亚洲综合大片69999| 一本久久综合亚洲鲁鲁| 在线视频欧美一区| 欧美日韩国产欧| 国产精品区二区三区日本| 国产伦精品一区二区三区免费| 91久久黄色| 亚洲精品欧美极品| 亚洲国产中文字幕在线观看| 亚洲人成艺术| 久久精品国产2020观看福利| 欧美高清在线观看| 99国产精品| 一区二区高清视频在线观看| 亚洲一区在线免费| 欧美激情在线狂野欧美精品| 欧美日韩不卡合集视频| 99精品免费| 久久久久九九视频| 欧美国产一区视频在线观看| 一区二区电影免费观看| 亚洲免费成人av| 欧美精品1区2区| 尤物视频一区二区| 牛人盗摄一区二区三区视频| 欧美在线视频网站| 在线成人激情视频| 欧美成人亚洲成人日韩成人| 免费成人小视频| 老司机精品视频一区二区三区| 国产在线精品自拍| 亚洲人精品午夜| 国产精品视频最多的网站| 久久综合久色欧美综合狠狠| 久久久久国色av免费看影院| 国产精品九九| 亚洲一卡二卡三卡四卡五卡| 国产日韩精品在线观看| 亚洲免费一级电影| 久久精品二区亚洲w码| 极品裸体白嫩激情啪啪国产精品| 欧美一区激情视频在线观看| 亚洲激情av| 国产精品视区| 久久五月婷婷丁香社区| 欧美日韩亚洲综合| 久久综合中文色婷婷| 男人的天堂亚洲在线| 久久男人资源视频| 亚洲一区日本| 亚洲每日在线| 亚洲欧美国产另类| 国产精品视屏| 久久综合一区二区| 欧美日韩一区二区在线播放| 久久久久久69| 欧美三级视频在线观看| 久久精品91久久久久久再现| 欧美刺激性大交免费视频| 亚洲欧美日韩电影| 欧美日韩性生活视频| 欧美国产日韩精品免费观看| 欧美日在线观看| 亚洲精品日韩综合观看成人91| 欧美日韩妖精视频| 一本色道久久综合狠狠躁篇的优点| 亚洲精品少妇| 欧美丰满少妇xxxbbb| 亚洲免费视频在线观看| 欧美精品亚洲精品| 亚洲电影免费观看高清完整版在线 | 亚洲免费视频观看| 国产综合色产| 欧美国产先锋| 美女91精品| 亚洲精品日日夜夜| 欧美日韩一区在线视频| 久久亚洲综合色| 亚洲成色最大综合在线| 欧美亚洲在线| 在线日本欧美| 久久久亚洲精品一区二区三区| 亚洲一区二区精品| 国产欧美一区二区精品婷婷 | 欧美一区二区精品久久911| 欧美国产在线视频| 99精品视频免费全部在线| 欧美一激情一区二区三区| 欧美aⅴ一区二区三区视频| 亚洲在线免费观看| 亚洲九九爱视频| 亚洲国产女人aaa毛片在线| 亚洲日本久久| 国产精品你懂的在线欣赏| 久久高清国产| 亚洲永久免费av| 久久琪琪电影院| 亚洲国产成人av| 国产精品免费视频xxxx| 国产综合网站| 国产精品久久久久久久久久久久久| 久久精品人人做人人爽电影蜜月| 亚洲黄网站黄| 久久久青草青青国产亚洲免观| 亚洲私拍自拍| 黄色在线一区| 激情国产一区| 亚洲一级在线观看| 亚洲天堂av在线免费| 亚洲日本一区二区| 亚洲第一二三四五区| 国内精品福利| 亚洲国产成人av| 国产无遮挡一区二区三区毛片日本| 国产精品v欧美精品v日韩| 精品不卡视频| 国产手机视频精品| 91久久精品国产91性色| 欧美一级片久久久久久久| 91久久夜色精品国产九色| 亚洲日本一区二区三区| 久久亚洲一区二区三区四区| 久久伊人精品天天| 亚洲国产裸拍裸体视频在线观看乱了中文 | 亚洲视频电影在线| 亚洲视频一区二区免费在线观看| 亚洲人成网站777色婷婷| 亚洲私人影院在线观看| 亚洲国产精品va在线看黑人| 午夜精品亚洲| 亚洲国产欧美久久| 在线一区二区三区四区| 久久天天躁狠狠躁夜夜爽蜜月 | 久久久国产亚洲精品| 欧美激情视频一区二区三区不卡| 国产日韩欧美成人| 欧美在线999| 亚洲中无吗在线| 欧美成人日本| 在线成人免费观看| 欧美影院成人| 欧美黄色一级视频| 久久综合中文色婷婷| 在线看片第一页欧美| 久久精品官网| 亚洲免费在线观看视频| 国外成人在线视频| 99精品欧美一区| 亚洲最黄网站| 国产精品福利网| 经典三级久久| 亚洲欧美日韩区|