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++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » bug in latest svn
Re: bug in latest svn [message #15765 is a reply to message #15618] Wed, 07 May 2008 14:13 Go to previous message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
The warning may be avoided trough:
static const String interlock_problem = "Some problem with INTERLOCKED_ happened!";
const String& GetCppFile(int i)
{
	INTERLOCKED_(cpp_file_mutex) {
		return cpp_file[i];
	}
	return interlock_problem;
}



This will also lead to weird String constant in case the INTERLOCKED_ macro gets damaged by something and it will stop work correctly.
(and returning the interlock_problem const reference is thread safe no matter what? I wish I would KNOW, I will have to work on my "knowledge" of ordinary C++ MT and U++ way. The general ASM knowledge doesn't help here too much.)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Some lack of features
Next Topic: [BUG] Ide loses "maximized" setting on minimize
Goto Forum:
  


Current Time: Mon May 13 17:52:18 CEST 2024

Total time taken to generate the page: 0.01376 seconds