aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-04-11 13:40:55 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-04-11 13:41:49 +0200
commit6db3355858157aceb92af47faa7937008d9cbf28 (patch)
treeb4c6584a5863dd1e3e6acc5ff0d86e23eb5b275c /global-functions.rsc
parente53c31e9e669738fa50e45387d88d97a934f7e4d (diff)
global-functions: $ScriptLock: break long lines
Diffstat (limited to 'global-functions.rsc')
-rw-r--r--global-functions.rsc7
1 files changed, 5 insertions, 2 deletions
diff --git a/global-functions.rsc b/global-functions.rsc
index ded34c3..25c248d 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -1278,12 +1278,15 @@
$AddTicket $Script $MyTicket;
:local WaitCount 0;
- :while ($WaitMax > $WaitCount && ([ $IsFirstTicket $Script $MyTicket ] = false || [ $TicketCount $Script ] < [ $JobCount $Script ])) do={
+ :while ($WaitMax > $WaitCount && \
+ ([ $IsFirstTicket $Script $MyTicket ] = false || \
+ [ $TicketCount $Script ] < [ $JobCount $Script ])) do={
:set WaitCount ($WaitCount + 1);
:delay 100ms;
}
- :if ([ $IsFirstTicket $Script $MyTicket ] = true && [ $TicketCount $Script ] = [ $JobCount $Script ]) do={
+ :if ([ $IsFirstTicket $Script $MyTicket ] = true && \
+ [ $TicketCount $Script ] = [ $JobCount $Script ]) do={
$RemoveTicket $Script $MyTicket;
$CleanupTickets $Script;
:return true;