action:Semaphore_Lock
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:Semaphore_Lock [2019/08/26 00:39] – [Preventing Multiple Executions of One or More Macros] Rev #2 JMichaelTX | action:Semaphore_Lock [2022/10/31 01:42] (current) – [Macros Triggered by the User] peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Semaphore Actions ====== | ====== Semaphore Actions ====== | ||
| - | The //Semaphore actions// (Lock, Unlock and Reset) allow you prevent (a) multiple triggers of the same macro from executing simultaneously, | + | The //Semaphore actions// (Lock, Unlock and Reset) allow you to prevent (a) multiple triggers of the same macro from executing simultaneously, |
| ===== Background ===== | ===== Background ===== | ||
| Line 9: | Line 9: | ||
| ==== Macros Triggered by the User ==== | ==== Macros Triggered by the User ==== | ||
| + | Although it is rare to have multiple macros triggered at the same time, the normal behaviour in Keyboard Maestro is that all triggered macros run simultaneously, | ||
| - | The normal case is that all triggered macros run simultaneously (or synchronously), | + | Most macros are triggered explicitly |
| - | + | ||
| - | Most macros are triggered explicitly | + | |
| ==== Macros Triggered in the Background ==== | ==== Macros Triggered in the Background ==== | ||
| Line 24: | Line 23: | ||
| **The //Semaphore actions// require a _Semaphore Name_, which uniquely identify each _Semaphore Lock_.** | **The //Semaphore actions// require a _Semaphore Name_, which uniquely identify each _Semaphore Lock_.** | ||
| - | **In order to prevent simultaneous executions (instances) of one or more macros that have _Semaphore Locks_ | + | **In order to prevent simultaneous executions (instances) of one or more macros that have _Semaphore Locks_ |
| * Place a //Semaphore Lock// Action (using the same Semaphore Name) as the first action of each Macro that you wish to prevent executing simultaneously. | * Place a //Semaphore Lock// Action (using the same Semaphore Name) as the first action of each Macro that you wish to prevent executing simultaneously. | ||
action/Semaphore_Lock.1566779966.txt.gz · Last modified: by JMichaelTX
