summaryrefslogtreecommitdiff
path: root/ractor_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'ractor_core.h')
-rw-r--r--ractor_core.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ractor_core.h b/ractor_core.h
index c97dfcc85f..daa652ebff 100644
--- a/ractor_core.h
+++ b/ractor_core.h
@@ -14,11 +14,13 @@ enum rb_ractor_basket_type {
basket_type_copy,
basket_type_move,
basket_type_will,
+ basket_type_deleted,
+ basket_type_reserved,
};
struct rb_ractor_basket {
- enum rb_ractor_basket_type type;
bool exception;
+ enum rb_ractor_basket_type type;
VALUE v;
VALUE sender;
};
@@ -28,6 +30,8 @@ struct rb_ractor_queue {
int start;
int cnt;
int size;
+ unsigned int serial;
+ unsigned int reserved_cnt;
};
struct rb_ractor_waiting_list {
@@ -76,7 +80,7 @@ struct rb_ractor_sync {
struct rb_ractor_struct {
struct rb_ractor_sync sync;
-
+ VALUE receiving_mutex;
bool yield_atexit;
// vm wide barrier synchronization