Do I only need !Send for a local allocator?

⚓ Rust    📅 2026-04-13    👤 surdeus    👁️ 5      

surdeus

For my thread-local allocator Local, I have made it !Send and !Sync.

I was just thinking, do I only need !Send to make sure something allocated from Local by one thread cannot be deallocated by a different thread?

4 posts - 3 participants

Read full topic

🏷️ Rust_feed