Files
FluidAudio/Sources/MachTaskSelfWrapper/include/MachTaskSelf.h
Alex 73fb84aa9d feat: Migrate to Swift 6 with strict concurrency (#233)
- 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
2025-12-31 14:57:14 -05:00

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 */