mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[Feature #20244] Register global variable for another thread
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
This commit is contained in:
parent
4bb8f8582f
commit
67fe047821
1 changed files with 1 additions and 0 deletions
1
dir.c
1
dir.c
|
@ -3652,6 +3652,7 @@ void
|
|||
Init_Dir(void)
|
||||
{
|
||||
rb_gc_register_address(&chdir_lock.path);
|
||||
rb_gc_register_address(&chdir_lock.thread);
|
||||
|
||||
rb_cDir = rb_define_class("Dir", rb_cObject);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue