in multi-threaded c++ app, i need mutex strengthen rudimentary boolean?


i have multi-threaded c++ app does 3d digest openscenegraph library. i'm formulation whip off osg's news loop removed thread controlling boost::threads, flitting information structure containing common state thread. i'm perplexing prevaricate anything too heavyweight (like mutexes) synchronization, news loop needs graceful tight, osg itself tries prevaricate carrying ever lock. many common state set before thread started, never changed. i have information does need changed, i am formulation double-buffer. however, i have rudimentary boolean signaling thread postpone rendering, after resume rendering, another kill it. both cases app thread sets bool, news thread wholly reads it. i need synchronize opening bools? distant i tell, worse thing occur the news loop continues an additional support before suspending quitting.



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members