Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
Go to the source code of this file.
Data Structures | |
struct | rb_ractor_local_storage_type |
Macros | |
#define | RB_RACTOR_LOCAL_STORAGE_TYPE_FREE (&rb_ractor_local_storage_type_free) |
#define | RB_OBJ_SHAREABLE_P(obj) FL_TEST_RAW((obj), RUBY_FL_SHAREABLE) |
Typedefs | |
typedef struct rb_ractor_local_key_struct * | rb_ractor_local_key_t |
Functions | |
VALUE | rb_ractor_stdin (void) |
VALUE | rb_ractor_stdout (void) |
VALUE | rb_ractor_stderr (void) |
void | rb_ractor_stdin_set (VALUE) |
void | rb_ractor_stdout_set (VALUE) |
void | rb_ractor_stderr_set (VALUE) |
rb_ractor_local_key_t | rb_ractor_local_storage_value_newkey (void) |
VALUE | rb_ractor_local_storage_value (rb_ractor_local_key_t key) |
bool | rb_ractor_local_storage_value_lookup (rb_ractor_local_key_t key, VALUE *val) |
void | rb_ractor_local_storage_value_set (rb_ractor_local_key_t key, VALUE val) |
rb_ractor_local_key_t | rb_ractor_local_storage_ptr_newkey (const struct rb_ractor_local_storage_type *type) |
void * | rb_ractor_local_storage_ptr (rb_ractor_local_key_t key) |
void | rb_ractor_local_storage_ptr_set (rb_ractor_local_key_t key, void *ptr) |
VALUE | rb_ractor_make_shareable (VALUE obj) |
VALUE | rb_ractor_make_shareable_copy (VALUE obj) |
Variables | |
VALUE | rb_cRactor |
const struct rb_ractor_local_storage_type | rb_ractor_local_storage_type_free |
Definition in file ractor.h.
#define RB_OBJ_SHAREABLE_P | ( | obj | ) | FL_TEST_RAW((obj), RUBY_FL_SHAREABLE) |
#define RB_RACTOR_LOCAL_STORAGE_TYPE_FREE (&rb_ractor_local_storage_type_free) |
typedef struct rb_ractor_local_key_struct* rb_ractor_local_key_t |
void * rb_ractor_local_storage_ptr | ( | rb_ractor_local_key_t | key | ) |
rb_ractor_local_key_t rb_ractor_local_storage_ptr_newkey | ( | const struct rb_ractor_local_storage_type * | type | ) |
Definition at line 3097 of file ractor.c.
References ALLOC, key, and Qundef.
Referenced by Init_ossl_bn(), InitVM_Random(), and rb_ractor_local_storage_value_newkey().
void rb_ractor_local_storage_ptr_set | ( | rb_ractor_local_key_t | key, |
void * | ptr | ||
) |
VALUE rb_ractor_local_storage_value | ( | rb_ractor_local_key_t | key | ) |
bool rb_ractor_local_storage_value_lookup | ( | rb_ractor_local_key_t | key, |
VALUE * | val | ||
) |
rb_ractor_local_key_t rb_ractor_local_storage_value_newkey | ( | void | ) |
Definition at line 3106 of file ractor.c.
References rb_ractor_local_storage_ptr_newkey().
void rb_ractor_local_storage_value_set | ( | rb_ractor_local_key_t | key, |
VALUE | val | ||
) |
VALUE rb_ractor_stderr | ( | void | ) |
Definition at line 2148 of file ractor.c.
References rb_ractor_struct::r_stderr, and rb_stderr.
Referenced by rb_f_abort(), rb_parser_fatal(), rb_write_error2(), and rb_write_error_str().
void rb_ractor_stderr_set | ( | VALUE | err | ) |
Definition at line 2184 of file ractor.c.
References err, rb_ractor_struct::pub, rb_ractor_struct::r_stderr, RB_OBJ_WRITE, rb_stderr, and rb_ractor_pub::self.
VALUE rb_ractor_stdin | ( | void | ) |
Definition at line 2124 of file ractor.c.
References rb_ractor_struct::r_stdin, and rb_stdin.
void rb_ractor_stdin_set | ( | VALUE | in | ) |
Definition at line 2160 of file ractor.c.
References in(), rb_ractor_struct::pub, rb_ractor_struct::r_stdin, RB_OBJ_WRITE, rb_stdin, and rb_ractor_pub::self.
VALUE rb_ractor_stdout | ( | void | ) |
Definition at line 2136 of file ractor.c.
References rb_ractor_struct::r_stdout, and rb_stdout.
Referenced by rb_io_getbyte(), and rb_parser_fatal().
void rb_ractor_stdout_set | ( | VALUE | out | ) |
Definition at line 2172 of file ractor.c.
References out, rb_ractor_struct::pub, rb_ractor_struct::r_stdout, RB_OBJ_WRITE, rb_stdout, and rb_ractor_pub::self.
|
extern |
Definition at line 20 of file ractor.c.
Referenced by Init_Ractor(), and rb_ractor_main_setup().
|
extern |