Skip to content

Commit

Permalink
ttapi: __asm pause replaced by _mm_pause.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Aug 4, 2017
1 parent c289fee commit dca97fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xrCore/Threading/ttapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static DWORD WINAPI ttapiThreadProc(void* lpParameter)
// Msg( "0x%8.8X Fast %u" , dwId , i );
goto process;
}
__asm pause;
_mm_pause();
}

// Moderate
Expand Down Expand Up @@ -124,7 +124,7 @@ int ttapi_Init(const processor_info& pi)
{
if (!dwDummy)
goto process1;
__asm pause;
_mm_pause();
}
process1:
QueryPerformanceCounter(&liEnd);
Expand Down Expand Up @@ -220,7 +220,7 @@ void ttapi_Run()
// Waiting task queue to become empty
// Start = __rdtsc();
while (ttapi_queue_size.size)
__asm pause;
_mm_pause();
// Stop = __rdtsc();
// Msg( "Wait: %u ticks" , Stop - Start );
}
Expand Down

0 comments on commit dca97fe

Please sign in to comment.