c++ - std::locale/std::facet Critical section -



c++ - std::locale/std::facet Critical section -

out of curiosity. in past i've seen performance degradation in function boost::to_lower because of criticalsection employed in std::use_facet when lazy facet allocated. far remember there bug global lock on locale according stephan lavavej fixed in vs2013. , voila, saw lock on facet killing server performance yesterday guess i'm confusing 2 different issues. in first place, why there criticalsection around lazy facet? ruin performance. why didnt resolve kind of upgradable lock or atomic operations on pointers?

c++ multithreading visual-c++ locale

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -