Help understanding Threads and their scope

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
epete
Posts: 81
Joined: 02 Dec 2020, 10:03

Help understanding Threads and their scope

14 Apr 2021, 05:24

I have several settimers in a script. I want one of them to be "Critical", and put "Critical" in the settimer function.
1) Is each settimer a complete "thread"?
2) If the settimer is a function, and that function calls other functions, which calls other functions - is the entire thing a single thread that is protected by the parent "Critical"?
3) i.e., will other settimers run during this chain of a "Critical" thread?
4) In essence, I want all other settimers to wait until the critical settimer is done doing it's thing.
User avatar
mikeyww
Posts: 27107
Joined: 09 Sep 2014, 18:38

Re: Help understanding Threads and their scope

14 Apr 2021, 05:55

Why not test it? You could answer all of your questions in just a few lines. Please take no offense; testing seems like a good idea.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 132 guests