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 » AssertST problem in initialization when debugging on MSBT17x64
Re: AssertST problem in initialization when debugging on MSBT17x64 [message #50644 is a reply to message #50634] Wed, 28 November 2018 18:22 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
mr_ped wrote on Wed, 28 November 2018 10:34

So I think in the end everything worked as supposed, and you fixed a bug in your code (although it may be just "U++ code style" "bug", not real bug causing some wrong results at runtime).


Well, it is all about optimization. Global initialization often creates various maps, e.g. map of image decoders. If we can say that these happen before any threads start, we can access these maps without mutexes. So the general rule is established as "never start threads before main" and AssertST is here to enforce it.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error in DUMP_ declaration
Next Topic: About Serialization
Goto Forum:
  


Current Time: Mon Aug 25 21:10:32 CEST 2025

Total time taken to generate the page: 0.06037 seconds