StephanvanSchaik / mmap-rs

A cross-platform and safe Rust API to create and manage memory mappings in the virtual address space of the calling process.
Apache License 2.0
61 stars 17 forks source link

impl `Send` and `Sync` #6

Closed TimLuq closed 1 year ago

TimLuq commented 1 year ago

Since the address referenced by ptr is not pointing to the stack or anything thread local Mmap should be manually marked as Send and Sync.

Fixes #5 .

StephanvanSchaik commented 1 year ago

Thank you!