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

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区2区| 欧美日韩国产不卡| 亚洲欧美另类在线观看| 欧美一区二区三区精品电影| 在线视频观看日韩| 亚洲精品在线视频| 国产日韩欧美精品| 欧美不卡一区| 国产精品国色综合久久| 久久这里只有| 欧美日韩在线直播| 久久中文字幕一区二区三区| 欧美成人资源| 午夜精品视频一区| 另类综合日韩欧美亚洲| 亚洲午夜电影在线观看| 欧美一区二区三区在线免费观看 | 小处雏高清一区二区三区| 在线观看欧美激情| 亚洲性视频h| 在线观看欧美精品| 亚洲一区二区三区在线| 亚洲第一页在线| 一区二区福利| 亚洲国产裸拍裸体视频在线观看乱了中文 | 国产精品视频久久一区| 久久综合色播五月| 欧美丝袜一区二区| 欧美成人精品高清在线播放| 国产精品成人免费| 亚洲国产精品va在线观看黑人| 国产精品国产亚洲精品看不卡15| 欧美xxx成人| 国产亚洲一级高清| 一区二区三区四区精品| 亚洲精品久久久久久下一站 | 欧美午夜视频网站| 亚洲风情亚aⅴ在线发布| 国产香蕉97碰碰久久人人| 亚洲精品之草原avav久久| 精品91视频| 欧美一区二区高清在线观看| 亚洲一区在线免费| 欧美另类专区| 亚洲高清视频一区| 亚洲电影成人| 久久露脸国产精品| 久久午夜精品| 极品裸体白嫩激情啪啪国产精品 | 免费h精品视频在线播放| 国产小视频国产精品| 亚洲一区视频在线观看视频| 中文高清一区| 欧美日韩精品久久| 99精品欧美| 亚洲伊人伊色伊影伊综合网| 欧美日韩另类国产亚洲欧美一级| 亚洲国产91精品在线观看| 亚洲国产欧美一区| 欧美成人69| 亚洲黄色在线| 亚洲图片欧美日产| 欧美视频在线观看一区二区| 99精品国产福利在线观看免费 | 亚洲精品在线二区| 欧美精品99| 日韩一区二区免费高清| 亚洲综合清纯丝袜自拍| 国产精品欧美一区喷水| 午夜精品久久久久久久久久久久久| 欧美一级日韩一级| 韩国一区二区三区美女美女秀| 久久久久久91香蕉国产| 欧美大片va欧美在线播放| 亚洲精品之草原avav久久| 欧美精品久久久久a| 中文一区字幕| 久久综合色播五月| 亚洲精选91| 国产精品一卡二| 久久久久久97三级| 亚洲国产一二三| 亚洲影院在线| 樱桃视频在线观看一区| 欧美寡妇偷汉性猛交| 亚洲网站在线观看| 免播放器亚洲一区| 亚洲一区二区成人在线观看| 国产一区二区三区四区老人| 久久资源av| 亚洲手机视频| 欧美风情在线观看| 亚洲欧美日韩精品久久| 韩日视频一区| 欧美视频久久| 免费成人在线观看视频| 亚洲五月婷婷| 亚洲国产精品第一区二区| 午夜精品久久久久久久久久久久久 | 亚洲一区中文字幕在线观看| 久久亚裔精品欧美| 亚洲直播在线一区| 亚洲欧洲精品一区二区三区不卡| 国产精品日韩欧美| 欧美激情久久久久久| 欧美一区中文字幕| 亚洲视频福利| 亚洲欧洲日本专区| 欧美**字幕| 久久久久久久综合狠狠综合| 在线一区免费观看| 亚洲国产精品一区二区www在线| 国产精品久久久久久久久借妻| 欧美成人精品激情在线观看| 欧美一区二区视频在线观看2020| 亚洲免费观看在线观看| 欧美激情精品久久久久久| 久久精品官网| 午夜精品久久久久久久男人的天堂 | 久久一区二区三区四区五区| 亚洲欧美欧美一区二区三区| 亚洲乱码日产精品bd| 亚洲福利视频专区| 一区在线播放| 精品69视频一区二区三区| 国产视频丨精品|在线观看| 国产精品美女久久久久av超清| 欧美精品一区二区三区久久久竹菊| 久热精品在线视频| 久久嫩草精品久久久精品| 久久精品91| 久久久国产91| 久久久久久久久久码影片| 久久成人精品视频| 久久精品国产综合精品| 久久久九九九九| 久久久久久69| 免费国产自线拍一欧美视频| 美日韩精品免费| 免费人成精品欧美精品| 欧美大片免费久久精品三p| 欧美激情aaaa| 欧美日韩一二三四五区| 国产精品盗摄久久久| 国产精品高潮呻吟久久av无限| 欧美性大战久久久久久久蜜臀| 欧美视频第二页| 国产精品主播| 激情综合色丁香一区二区| 亚洲国产精品va在线看黑人动漫 | 性欧美暴力猛交69hd| 欧美在线免费看| 久久亚洲电影| 亚洲国产精品久久人人爱蜜臀| 亚洲精品免费网站| 亚洲一区二区欧美日韩| 欧美在线日韩在线| 玖玖精品视频| 欧美色视频日本高清在线观看| 国产精品女人毛片| 亚洲第一搞黄网站| 一本不卡影院| 久久精品午夜| 欧美激情亚洲国产| 在线一区欧美| 久久久精品国产99久久精品芒果| 免费一区视频| 国产精品普通话对白| 亚洲第一福利视频| 亚洲欧美一区二区在线观看| 久久人人爽国产| 日韩一区二区精品| 久久久久久久久久久久久9999| 欧美激情a∨在线视频播放| 国产农村妇女毛片精品久久麻豆| 亚洲第一主播视频| 午夜在线成人av| 亚洲国内自拍| 久久成人在线| 国产精品xvideos88| 亚洲第一搞黄网站| 欧美在线亚洲综合一区| 亚洲黄色免费| 久久激情婷婷| 欧美亚韩一区| 日韩天堂av| 免费日本视频一区| 性欧美办公室18xxxxhd| 欧美日韩国产小视频在线观看| 在线电影院国产精品| 午夜免费在线观看精品视频| 亚洲精品乱码久久久久久日本蜜臀| 欧美在线视频全部完| 国产精品免费视频xxxx| aa级大片欧美三级| 亚洲国产导航|