thread-safety-itc
OfficialSafely orchestrate cross-thread audio in RN
Software Engineering#audio#react-native#thread-safety#scheduler#cross-thread#inter-thread-communication#task-offloader
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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.