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 » Community » Newbie corner » Core\Mt.ccp
Core\Mt.ccp [message #49403] Sun, 04 February 2018 22:32 Go to previous message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
Hi all,
when I try to compile my project I receive the error below about Core.
What does it mean?

Regards,
Matteo

Error:
C:\upp\uppsrc\Core\Mt.cpp (635): error: '_mm_pause' was not declared in this scope
 (): _mm_pause();
C:\upp\uppsrc\Core\Mt.cpp (635): note: suggested alternative: '_mm_free'
 (): _mm_pause();
 (): _mm_free


Core\Mt.cpp
void SpinLock::Wait()
{
	volatile int n = 0;
	while(locked) {
	#ifdef CPU_X86
		_mm_pause();         <<<<<<< ROW 635
	#endif
		if(n++ > 500)
			Sleep(0);
	}
}
 
Read Message
Read Message
Read Message
Previous Topic: Connection to MySql problem
Next Topic: The linker does not find a .lib file
Goto Forum:
  


Current Time: Thu Apr 25 13:36:46 CEST 2024

Total time taken to generate the page: 0.02790 seconds