summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-02-08 16:03:10 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-02-08 16:03:10 +0000
commitc6e1c83f93f63a061f0804821ed29c656da38f28 (patch)
tree8f3b8863d9db2d79722a4ec104bb2eeb807f87e0 /memory.c
parent511ae2c1879676568b2f11312c38a66b2caa21c0 (diff)
Add work in progress concurrency. Might break stuff!
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory.c b/memory.c
index 04c716d..4606ef2 100644
--- a/memory.c
+++ b/memory.c
@@ -68,11 +68,11 @@ allocarray(arrayDataType t, int rank, int size)
}
void
-incref(Array *a)
+incarrayref(Array *a)
{
/* print("INCREF %d->%d %S\n", a->refs, a->refs+1, pparray(a)); */
a->refs++;
if(a->type == AtypeArray)
for(int i = 0; i < a->size; i++)
- incref(a->arraydata[i]);
+ incarrayref(a->arraydata[i]);
} \ No newline at end of file