Your use of threads for this purpose seems reasonable, if your goal is to keep the UI as responsive as possible.
Back to the possible race condition: are you using locks, semaphores, mutexes, or some other blocking mechanism to control shared access to your data structure?
Where does the freeze occur? In the GUI or in the processing thread? (That is, can you do things on the GUI side, but no image updates occur as a result?)




Reply With Quote
Bookmarks