SILENT KILLERPanel

Current Path: > > opt > alt > ruby30 > include > > ruby


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/ruby30/include//ruby

NameTypeSizeLast ModifiedActions
backward Directory - -
internal Directory - -
assert.h File 7720 bytes June 26 2024 13:55:16.
atomic.h File 9073 bytes June 26 2024 13:55:16.
backward.h File 2638 bytes June 26 2024 13:55:16.
config-x86_64.h File 13118 bytes June 26 2024 13:55:16.
config.h File 1215 bytes June 26 2024 13:55:16.
debug.h File 4611 bytes June 26 2024 13:55:16.
defines.h File 2549 bytes June 26 2024 13:55:16.
digest.h File 1731 bytes June 26 2024 13:55:16.
encoding.h File 18402 bytes June 26 2024 13:55:16.
intern.h File 2394 bytes June 26 2024 13:55:16.
io.h File 5652 bytes June 26 2024 13:55:16.
memory_view.h File 6457 bytes June 26 2024 13:55:16.
missing.h File 5681 bytes June 26 2024 13:55:16.
onigmo.h File 44658 bytes June 26 2024 13:55:16.
oniguruma.h File 262 bytes June 26 2024 13:55:16.
ractor.h File 2145 bytes June 26 2024 13:55:16.
random.h File 2991 bytes June 26 2024 13:55:16.
re.h File 1183 bytes June 26 2024 13:55:16.
regex.h File 1020 bytes June 26 2024 13:55:16.
ruby.h File 5116 bytes June 26 2024 13:55:16.
st.h File 7565 bytes June 26 2024 13:55:16.
subst.h File 815 bytes June 26 2024 13:55:16.
thread.h File 1464 bytes June 26 2024 13:55:16.
thread_native.h File 2417 bytes June 26 2024 13:55:16.
util.h File 1643 bytes June 26 2024 13:55:16.
version.h File 2107 bytes June 26 2024 13:55:16.
vm.h File 1680 bytes June 26 2024 13:55:16.

Reading File: //opt/alt/ruby30/include//ruby/ractor.h

#ifndef RUBY_RACTOR_H
#define RUBY_RACTOR_H 1

/**
 * @file
 * @author Koichi Sasada
 * @date Tue Nov 17 16:39:15 2020
 * @copyright Copyright (C) 2020 Yukihiro Matsumoto
 * @copyright  This  file  is   a  part  of  the   programming  language  Ruby.
 *             Permission  is hereby  granted,  to  either redistribute  and/or
 *             modify this file, provided that  the conditions mentioned in the
 *             file COPYING are met.  Consult the file for details.
 */

struct rb_ractor_local_storage_type {
    void (*mark)(void *ptr);
    void (*free)(void *ptr);
    // TODO: update
};

typedef struct rb_ractor_local_key_struct *rb_ractor_local_key_t;

RUBY_SYMBOL_EXPORT_BEGIN
RUBY_EXTERN VALUE rb_cRactor;

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);

RUBY_EXTERN const struct rb_ractor_local_storage_type rb_ractor_local_storage_type_free;
#define RB_RACTOR_LOCAL_STORAGE_TYPE_FREE (&rb_ractor_local_storage_type_free)

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);

RUBY_SYMBOL_EXPORT_END

#define RB_OBJ_SHAREABLE_P(obj) FL_TEST_RAW((obj), RUBY_FL_SHAREABLE)

static inline bool
rb_ractor_shareable_p(VALUE obj)
{
    bool rb_ractor_shareable_p_continue(VALUE obj);

    if (SPECIAL_CONST_P(obj)) {
        return true;
    }
    else if (RB_OBJ_SHAREABLE_P(obj)) {
        return true;
    }
    else {
        return rb_ractor_shareable_p_continue(obj);
    }
}

#endif /* RUBY_RACTOR_H */

SILENT KILLER Tool