multithreading - Descendant of TThread, accessing properties from main thread -


I have a class that is descended from TThread. I have some public properties that are read only. If my main thread reads those values, will I run into problems?

If "read-only qualities" mean that the T-Tr્રેડ descendants never change them You can not, and start them as ASP, otherwise, everything will be fine (unless you make sure the thread is alive and whenever you request property values).

If only through "readable properties" you mean that the T-root descendants will only be able to change them, then you want to ensure that the main thread is not being replaced by them ( As long as they are atomic values, like integers).


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -