summaryrefslogtreecommitdiff
path: root/shared_counter.kpl
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-07-11 21:36:30 -0400
committernodist <kevin.comas.git@gmail.com>2026-07-11 21:36:30 -0400
commit997399661be0350e12d1b8eb4cad90ce56ed68f2 (patch)
tree05be31959272d2b4ebf9eab6961a2ff523fd843a /shared_counter.kpl
parent78a31d8c270d13dfade672a3687f3c95d8bd19ae (diff)
remove non typed args
Diffstat (limited to 'shared_counter.kpl')
-rw-r--r--shared_counter.kpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/shared_counter.kpl b/shared_counter.kpl
index 0fdf804..01f01bd 100644
--- a/shared_counter.kpl
+++ b/shared_counter.kpl
@@ -3,7 +3,7 @@
counter : %shared 0
-inc_dec : ([amount]
+inc_dec : ([I64.amount]
header : "#BOLD#Thread: %#, #WHITE#Counter:# " `format `thread_id
body : ^ counter {[c]
c +: amount
@@ -19,11 +19,13 @@ inc_dec : ([amount]
inc : inc_dec `bind 1
dec : inc_dec `bind -1
+Inc_Dec_fn `type dec
+
actions : %const 1_000
batch : %const 100
-runner : ([fn]
+runner : ([Inc_Dec_fn.fn]
total : actions
@ total {
`log "#WHITE#Batch: #CYAN#% #MAGENTA#%#\n" `format (fn; total)