mirror of
https://github.com/FluidInference/FluidAudio.git
synced 2026-05-12 20:20:36 +00:00
73fb84aa9d
- Update Package.swift to swift-tools-version: 6.0 - Add @preconcurrency import CoreML/AVFoundation throughout codebase - Make structs Sendable (AppLogger, DownloadConfig, etc.) - Use nonisolated(unsafe) for static mutable state - Fix AudioStream by removing @unchecked Sendable, making AsyncCallback @Sendable - Fix Task closures with proper explicit captures - Convert concurrent tests to sequential where types aren't Sendable - Add @MainActor to test methods using waitForExpectations 🤖 Generated with [Claude Code](https://claude.com/claude-code) ### Why is this change needed? <!-- Explain the motivation for this change. What problem does it solve? --> resolve #231
11 lines
280 B
C
11 lines
280 B
C
// mach_task_self_ is a C macro that Swift 6 can't import directly.
|
|
// This wrapper provides a simple function that Swift can safely call.
|
|
#ifndef MachTaskSelf_h
|
|
#define MachTaskSelf_h
|
|
|
|
#include <mach/mach.h>
|
|
|
|
mach_port_t get_current_task_port(void);
|
|
|
|
#endif /* MachTaskSelf_h */
|