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

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>
            欧美激情精品久久久久久| 亚洲电影自拍| 亚洲欧洲一区二区三区久久| 欧美午夜精品久久久久免费视| 欧美成人福利视频| 国产亚洲精品美女| 一区二区不卡在线视频 午夜欧美不卡在 | 亚洲精品久久久久久久久久久 | 老色鬼久久亚洲一区二区| 亚洲欧美日韩国产一区二区三区| 欧美成人精品福利| 欧美a一区二区| 伊人久久婷婷| 欧美一区精品| 久久精品国产精品亚洲综合| 国产精品久久久久久久久果冻传媒| 亚洲国产日日夜夜| 亚洲欧洲精品一区二区精品久久久| 欧美一站二站| 欧美在线视频一区二区| 国产精品久久久久久亚洲调教 | 欧美日韩美女在线观看| 亚洲国产欧美日韩精品| 亚洲免费av观看| 欧美激情乱人伦| 亚洲欧洲一级| 亚洲已满18点击进入久久| 欧美日韩系列| 亚洲视频精选在线| 午夜亚洲性色福利视频| 国产精品亚洲欧美| 欧美一级二区| 免播放器亚洲| 亚洲久久视频| 欧美视频成人| 亚洲欧美国产三级| 免费高清在线一区| 亚洲三级免费观看| 欧美片第一页| 午夜精品福利视频| 久久久人人人| 亚洲福利精品| 欧美日韩国产首页| 亚洲欧美春色| 美女在线一区二区| 9i看片成人免费高清| 国产精品高潮呻吟| 久久精品99国产精品酒店日本| 欧美成人高清| 亚洲自拍偷拍网址| 在线精品一区| 欧美四级剧情无删版影片| 性色av一区二区三区| 亚洲电影下载| 欧美一区午夜精品| 亚洲欧洲日本国产| 国产精品嫩草久久久久| 久久精品日产第一区二区| 亚洲国产天堂久久综合| 欧美一区二区三区另类| 亚洲精品欧洲精品| 国产欧美日韩中文字幕在线| 免费亚洲一区| 欧美一级午夜免费电影| 亚洲欧洲日本专区| 久久久久久穴| 中日韩美女免费视频网站在线观看| 国产日韩精品在线播放| 欧美精品免费在线观看| 欧美主播一区二区三区美女 久久精品人| 亚洲国产精品激情在线观看| 香蕉免费一区二区三区在线观看 | 米奇777超碰欧美日韩亚洲| 亚洲视频在线观看| 亚洲电影av| 国产偷久久久精品专区| 欧美日韩在线一二三| 欧美暴力喷水在线| 久久精品日产第一区二区三区| 99精品福利视频| 亚洲黄一区二区| 欧美成人高清| 榴莲视频成人在线观看| 欧美一区二区三区视频在线观看| 99re6这里只有精品视频在线观看| 国产一区二区三区在线观看视频| 欧美午夜视频一区二区| 欧美精品免费在线观看| 久久综合精品国产一区二区三区| 午夜精品久久久久久99热| 99国产精品视频免费观看一公开| 亚洲国产日韩欧美一区二区三区| 久久久一二三| 久久久噜噜噜久久| 久久精品99| 久久成年人视频| 欧美一区午夜精品| 欧美在线视频导航| 亚洲欧美日韩国产精品| 亚洲免费一区二区| 午夜在线视频一区二区区别| 亚洲伊人网站| 香蕉免费一区二区三区在线观看 | 日韩亚洲欧美成人| 亚洲精品久久久久久久久| 欧美激情一区在线| 亚洲第一黄网| 亚洲精品乱码| 亚洲毛片av| 99国产精品久久久久久久成人热 | 欧美三级午夜理伦三级中视频| 欧美夫妇交换俱乐部在线观看| 蜜臀久久99精品久久久久久9| 久久夜色精品国产亚洲aⅴ| 久久精品视频va| 久久亚洲欧美国产精品乐播| 玖玖精品视频| 欧美人与性动交a欧美精品| 欧美激情一区三区| 欧美日韩精品一区二区三区四区| 欧美日韩成人综合| 国产精品久久99| 国产香蕉久久精品综合网| 韩国美女久久| 亚洲精品国久久99热| 一区二区冒白浆视频| 亚洲欧美日韩系列| 久久精品夜色噜噜亚洲aⅴ| 欧美不卡一卡二卡免费版| 亚洲日韩中文字幕在线播放| 一本一本久久a久久精品牛牛影视| 亚洲一区二区三区精品在线观看| 亚洲欧美韩国| 欧美88av| 国产精品久久久久aaaa| 国语自产在线不卡| 一本大道久久a久久综合婷婷| 新狼窝色av性久久久久久| 久久资源在线| 亚洲美女av网站| 久久成人久久爱| 欧美精品九九| 国户精品久久久久久久久久久不卡| 在线观看视频一区| 亚洲一区3d动漫同人无遮挡| 久久久亚洲国产天美传媒修理工 | 欧美福利在线| 国产精品视频免费在线观看| 在线观看欧美一区| 在线亚洲一区| 免费成人黄色| 亚洲欧美激情四射在线日| 麻豆精品在线播放| 国产精品综合av一区二区国产馆| 亚洲国产三级网| 欧美在线高清视频| 亚洲精品免费一二三区| 久久久国产精品一区二区三区| 欧美日韩亚洲91| 亚洲福利小视频| 久久精品视频一| 99国产精品久久久| 美女主播一区| 激情偷拍久久| 欧美一区二区视频97| 最新中文字幕亚洲| 久久午夜精品| 国内成人精品视频| 午夜久久久久| 一本色道久久综合亚洲精品不| 久久综合图片| 精品99视频| 久久精品一区二区| 亚洲自拍另类| 国产精品久久久久久久久久妞妞 | 六月婷婷一区| 国产在线精品成人一区二区三区 | 欧美色大人视频| 亚洲日本久久| 亚洲国产另类久久久精品极度| 久久成人精品一区二区三区| 国产裸体写真av一区二区| 亚洲专区一区| 一区二区三区视频观看| 欧美日韩在线播放一区| 一区二区三区精品| 99精品视频一区| 欧美日韩一区二区三区视频| av成人免费| 99精品视频免费观看| 欧美日韩一区二区国产| 亚洲午夜女主播在线直播| 亚洲美女毛片| 欧美日韩一区在线视频| 亚洲一区二区精品在线观看| 一区二区三区视频在线观看| 国产精品高清网站| 欧美一区二区在线免费播放| 亚洲欧美综合精品久久成人| 国产亚洲欧美日韩一区二区|