It must be easier for developers, otherwise they would have to explain that global variables can be changed in OnTick handler only halfway when timer event occurred and program switched to it.
pusheax: This is probably easier for developers, otherwise they would have to explain that global variables can only be changed halfway in the OnTick handler when a timer event has occurred and the program has switched to it.
There are short "uninterrupted blocks" for that. The interrupt waits for it to complete anyway, then aborts.
Yurich: An interruption is when OnTick is being executed and a more important event, such as OnTimer, has arrived. Execution of OnTick is paused, OnTimer code is executed and then OnTick is executed again.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
if only :)
This is probably easier for developers, otherwise they would have to explain that global variables can only be changed halfway in the OnTick handler when a timer event has occurred and the program has switched to it.
if only :)
Don't use MessageBox without thinking.
There are short "uninterrupted blocks" for that. The interrupt waits for it to complete in any case, then interrupts.
And I didn't know that at all, and I wrote with the assumption that an interruption might occur and the data wouldn't be fully processed.
Set flags to start and end processing.
An interruption is when OnTick is being executed and a more important event, such as OnTimer, has arrived. Execution of OnTick is paused, OnTimer code is executed and then OnTick is executed again.
And with interruptions, everything would be in the same thread.
And I didn't know about it at all and wrote with the possibility that there might be an interruption and the data would not be fully processed.
I set flags to start and end processing.
Here we go. The public is already halfway there, we can safely enter.
;)
Kindergarten in general, at least some multithreading is needed.