U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » _mm_pause not defined
_mm_pause not defined [message #49165] Fri, 29 December 2017 23:16 Go to previous message
forlano is currently offline  forlano
Messages: 1224
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I was compiling my program using latest U++ 11634, Mingw compiling for 32 bit platform.
I got the error:

C:\upp\uppsrc\Core\Mt.cpp (635): error: '_mm_pause' was not declared in this scope

located in Mt.cpp:

void SpinLock::Wait()
{
volatile int n = 0;
while(locked) {
#ifdef CPU_X86
_mm_pause(); //<< error
#endif
if(n++ > 500)
Sleep(0);
}
}


Any idea how to fix it?
Thanks,
Luigi
 
Read Message
Read Message
Read Message
Previous Topic: CreateSymbolicLink doesn't compile using MinGW
Next Topic: ReadSecret() function for reading passwords, etc. from the console.
Goto Forum:
  


Current Time: Fri May 15 11:31:40 GMT+2 2026

Total time taken to generate the page: 0.00463 seconds