Ruby: rb_ractor_local_storage_type Struct Reference

Ruby 3.3.5p100 (2024-09-03 revision ef084cc8f4958c1b6e4ead99136631bef6d8ddba)

Data Fields
rb_ractor_local_storage_type Struct Reference

Type that defines a ractor-local storage. More...

`#include <ractor.h>`

## Data Fields
void(* | mark )(void *ptr)
| A function to mark a ractor-local storage.
void(* | free )(void *ptr)
| A function to destruct a ractor-local storage.

## Detailed Description

Type that defines a ractor-local storage.

Definition at line 21 of file ractor.h.

## Field Documentation

## ◆ free

void(* rb_ractor_local_storage_type::free) (void *ptr)

A function to destruct a ractor-local storage.

Parameters

  [out] | ptr | A ractor-local storage.

Postcondition
  `ptr` is not a valid pointer.

Definition at line 37 of file ractor.h.

## ◆ mark

void(* rb_ractor_local_storage_type::mark) (void *ptr)

A function to mark a ractor-local storage.

Parameters

  [out] | ptr | A ractor-local storage.

Postcondition
  Ruby objects inside of `ptr` are marked.

Definition at line 29 of file ractor.h.

The documentation for this struct was generated from the following file:

- include/ruby/ractor.h