diff options
author | glenda <glenda@9front> | 2022-10-22 16:45:32 +0000 |
---|---|---|
committer | glenda <glenda@9front> | 2022-10-22 16:45:32 +0000 |
commit | a82186dab48c234c507693b166acd7c13433864a (patch) | |
tree | eb6db255c93b1e6278e0e833e915c4c85372c84f /concurrency.c | |
parent | a3b635de1753ed4ce73dabdc7e2c24dfdf77891e (diff) |
Atomic reference counting
Diffstat (limited to 'concurrency.c')
-rw-r--r-- | concurrency.c | 3 |
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; } |