Skip to content

Commit dca97fe

Browse files
committed
ttapi: __asm pause replaced by _mm_pause.
From commit: Im-dex/xray-162@e5e71c9
1 parent c289fee commit dca97fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/xrCore/Threading/ttapi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static DWORD WINAPI ttapiThreadProc(void* lpParameter)
4747
// Msg( "0x%8.8X Fast %u" , dwId , i );
4848
goto process;
4949
}
50-
__asm pause;
50+
_mm_pause();
5151
}
5252

5353
// Moderate
@@ -124,7 +124,7 @@ int ttapi_Init(const processor_info& pi)
124124
{
125125
if (!dwDummy)
126126
goto process1;
127-
__asm pause;
127+
_mm_pause();
128128
}
129129
process1:
130130
QueryPerformanceCounter(&liEnd);
@@ -220,7 +220,7 @@ void ttapi_Run()
220220
// Waiting task queue to become empty
221221
// Start = __rdtsc();
222222
while (ttapi_queue_size.size)
223-
__asm pause;
223+
_mm_pause();
224224
// Stop = __rdtsc();
225225
// Msg( "Wait: %u ticks" , Stop - Start );
226226
}

0 commit comments

Comments
 (0)