summaryrefslogtreecommitdiff
path: root/tests/chain.apl
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2022-02-09 01:16:03 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2022-02-09 01:16:03 +0000
commit6ed5b9f6d3fdeeed8ecd43b18bae642ec1ec24b1 (patch)
treecee3f787af7fb7e8b892fb661f63dc9248cd5f61 /tests/chain.apl
parent8fd005f6185ac76ed0ac2495bd97ee817b472040 (diff)
Add much better memory handling (We now track and free Datum * structs)
Diffstat (limited to 'tests/chain.apl')
-rw-r--r--tests/chain.apl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/chain.apl b/tests/chain.apl
new file mode 100644
index 0000000..c8efeb7
--- /dev/null
+++ b/tests/chain.apl
@@ -0,0 +1,8 @@
+worker←{
+ msg←{1}⍇0
+ ⎕←'Worker id ',(⍕⎕self),' got message: ',(⍕msg),' forwarding to ',⍕⍵
+ ⍵≡⍬: ⎕←'DONE'
+ msg⍈⍵
+}
+last←worker&⍣25⊢⍬
+_←'Hello there'⍈last