thread-safety-itc

Official

Safely orchestrate cross-thread audio in RN

Authorsoftware-mansion
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Coordinating cross-thread interactions in a React Native audio pipeline is error-prone and risky when developers mix JS, audio, and worker threads. This guide defines the rules, primitives, and contracts to keep thread-bound work deterministic and safe.

Core Features & Use Cases

  • Three-thread model guidance: JS thread, Audio thread, and Off-thread workers with explicit responsibilities.
  • Contracts & primitives: CrossThreadEventScheduler, IAudioEventHandlerRegistry, AudioGraphManager, shadow state vs atomics, and SpscChannel usage.
  • Operational guidance: Preallocate, avoid blocking, and safely schedule events from JS to the audio thread; fire events back to JS.

Quick Start

Analyze the current cross-thread data flow and implement the recommended scheduler guidelines to ensure thread safety.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: thread-safety-itc
Download link: https://github.com/software-mansion/react-native-audio-api/archive/main.zip#thread-safety-itc

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.