summaryrefslogtreecommitdiff
path: root/concurrency.c
diff options
context:
space:
mode:
authorglenda <glenda@9front>2022-10-22 16:45:32 +0000
committerglenda <glenda@9front>2022-10-22 16:45:32 +0000
commita82186dab48c234c507693b166acd7c13433864a (patch)
treeeb6db255c93b1e6278e0e833e915c4c85372c84f /concurrency.c
parenta3b635de1753ed4ce73dabdc7e2c24dfdf77891e (diff)
Atomic reference counting
Diffstat (limited to 'concurrency.c')
-rw-r--r--concurrency.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/concurrency.c b/concurrency.c
index b45ee08..1c73099 100644
--- a/concurrency.c
+++ b/concurrency.c
@@ -2,6 +2,7 @@
#include <libc.h>
#include <bio.h>
#include <tos.h>
+#include <thread.h>
#include "apl9.h"
@@ -161,7 +162,7 @@ Retry:
/* Check if the new message is OK according to 'match' */
prev = m;
Array *matchres = runfunc(match, nil, m->contents);
- if(GetRank(matchres) != 1 || GetSize(matchres) != 2){
+ if(GetRank(matchres) != 1 || matchres->size != 2){
freearray(matchres);
goto Retry;
}