flat assembler
Message board for the users of flat assembler.
Index
> Windows > How windows execute settimer ? |
Author |
|
macomics 16 Jul 2022, 11:54
To block the execution of the program, MessageBox starts its own message processing cycle.
SetTimer adds the trigger time to the array/waiting list in chronological order and, with each timer interrupt, the handler checks the first element of this array/list for triggering. If it worked, a message from the timer is added to the message queue. The first message on the timer selects your message processing cycle, and the rest - the message processing cycle of the last MessageBox shown. To prevent such an effect, it is worth stopping the timer for the duration of its function or creating an execution flag (Event/Critical section, etc.) |
|||
16 Jul 2022, 11:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.