-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another thread can not read main thread class and modules at mruby 3.0 #68
Comments
This is limitation of mruby-thread. Thread is executed as separated VM instance. So you need to pass values to argument of constructor of the Thread. mruby-thread/example/synchronize.rb Line 5 in ff77afa
|
I pass it to the argument but not works |
I write this example:
Will triggers:
|
What's missing is a migration of the newly generated module/class objects of the main thread (VM)
which will print
Does anybody know how to migrate the module/class objects to the new thread (VM) ? |
(I've been probing at mruby/mruby#6077)
This is because The workaround I can think of is,
Also, the reason for the Line 417 in ff77afa
Line 364 in ff77afa
|
When in child thread do some code with:
Will tiggers:
Maybe symbols are not beeing migrate?
The text was updated successfully, but these errors were encountered: