mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
macos: symbols for rb_execution_context_t
should be internal
This commit is contained in:
parent
f052aa11f2
commit
3c4d788bfe
Notes:
git
2023-07-08 02:31:36 +00:00
3 changed files with 24 additions and 25 deletions
|
@ -90,7 +90,6 @@ struct rb_thread_sched {
|
|||
int wait_yield;
|
||||
};
|
||||
|
||||
RUBY_SYMBOL_EXPORT_BEGIN
|
||||
#ifdef RB_THREAD_LOCAL_SPECIFIER
|
||||
# ifdef __APPLE__
|
||||
// on Darwin, TLS can not be accessed across .so
|
||||
|
@ -123,6 +122,5 @@ native_tls_set(native_tls_key_t key, void *ptr)
|
|||
|
||||
RUBY_EXTERN native_tls_key_t ruby_current_ec_key;
|
||||
#endif
|
||||
RUBY_SYMBOL_EXPORT_END
|
||||
|
||||
#endif /* RUBY_THREAD_PTHREAD_H */
|
||||
|
|
1
vm.c
1
vm.c
|
@ -451,6 +451,7 @@ RB_THREAD_LOCAL_SPECIFIER rb_atomic_t ruby_nt_serial;
|
|||
{
|
||||
return ruby_current_ec;
|
||||
}
|
||||
|
||||
void
|
||||
rb_current_ec_set(rb_execution_context_t *ec)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue