11-26-2024, 09:05 AM
(This post was last modified: 11-26-2024, 09:06 AM by AbsoluteBeginner.)
(translated by Google translator)
Hello, JR
If I understood you correctly, then now everything works as you described.
If the event handler calls any subroutine, then this subroutine will also be executed in the handler thread ( that is, in a parallel thread ).
I hope I haven't made a mistake anywhere.
Hello, JR
If I understood you correctly, then now everything works as you described.
- A small event handler sets the appropriate flag.
- The main thread checks the value of this flag at the time the developer needs it.
- If the flag is set, the MAIN thread calls the required routine, which will be executed in this MAIN thread.
If the event handler calls any subroutine, then this subroutine will also be executed in the handler thread ( that is, in a parallel thread ).
I hope I haven't made a mistake anywhere.