diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-11-27 21:36:12 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-11-27 21:38:08 +0900 |
commit | 039ba387aa3c94600c60bbc2d7a9cf448f843ca5 (patch) | |
tree | 9424b858ce86c1c8769982cd36de25254ba820cf /ractor_core.h | |
parent | 5d8fe1267d2d4e60943e7b41f6dad990a53e077b (diff) |
Use opaque struct pointer than void
Diffstat (limited to 'ractor_core.h')
-rw-r--r-- | ractor_core.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ractor_core.h b/ractor_core.h index dd662141a0..6e9a63dc28 100644 --- a/ractor_core.h +++ b/ractor_core.h @@ -36,6 +36,8 @@ struct rb_ractor_waiting_list { rb_ractor_t **ractors; }; +struct rb_random_struct; // c.f. ruby/random.h + struct rb_ractor_struct { // ractor lock rb_nativethread_lock_t lock; @@ -127,7 +129,7 @@ struct rb_ractor_struct { VALUE verbose; VALUE debug; - void *default_rand; // used in random.c + struct rb_random_struct *default_rand; // used in random.c // gc.c rb_objspace_reachable_objects_from struct gc_mark_func_data_struct { |