aboutsummaryrefslogtreecommitdiff
path: root/builtins/datatypes.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-11 15:04:22 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-11 15:04:22 -0400
commitd2f4d07585d1e915365f3aaea6fc696e00a9e26d (patch)
tree12cf2a0f978835bc55db572df8e0d114c9b89494 /builtins/datatypes.h
parent2ecb5fe885042ca6c25ee0a3e3da070ddec9e07e (diff)
Support channels with maximum size
Diffstat (limited to 'builtins/datatypes.h')
-rw-r--r--builtins/datatypes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/datatypes.h b/builtins/datatypes.h
index 41a67a5e..a9f28dc1 100644
--- a/builtins/datatypes.h
+++ b/builtins/datatypes.h
@@ -62,6 +62,7 @@ typedef struct {
array_t items;
pthread_mutex_t mutex;
pthread_cond_t cond;
+ int64_t max_size;
} channel_t;
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0