I want to create two threads:
- main thread: handling the main logic flow, including reading the configuration file.
- network thread: Read the config parameter from server and write them into configuration file.
When main thread need to change the new scene, the configuration file need to updated by network thread. After that, main thread read the file. When network thread fetch config data and write configuration file, main thread need to pop an messgebox to show ‘Please waiting …’. After that, main thread need to be informed can read the file.
How to do that?