Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1182
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: Thu Mar 28 15:20:38 CET 2024

Total time taken to generate the page: 0.01142 seconds