Skip to content

Commit 0f49001

Browse files
committed
Update reader.rs
1 parent ad0b8e8 commit 0f49001

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/il2cpp/reader.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ impl std::fmt::Debug for Il2CppBackend {
4343
}
4444
}
4545

46+
// Safety: ProcessHandle on Windows/Linux is safe to send between threads.
47+
// On macOS, MacOsMemoryReader uses mach ports which are also thread-safe.
48+
unsafe impl Send for Il2CppBackend {}
49+
unsafe impl Sync for Il2CppBackend {}
50+
4651
impl Il2CppBackend {
4752
/// Create a new IL2CPP backend for the given process ID
4853
pub fn new(pid: u32) -> Self {

0 commit comments

Comments
 (0)