diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2026-03-06 01:41:50 +0100 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2026-03-06 01:42:16 +0100 |
| commit | 8fbdc168052f737e79eee990323df0c9dc5a9464 (patch) | |
| tree | e31dc8811d9044434f05fba1dca81fa5f0fa9608 /oryxc/src/arena.rs | |
| parent | 6addb6a0e1de892ad263b37c7064f90f9629c6af (diff) | |
Add local arenas to each thread
Diffstat (limited to 'oryxc/src/arena.rs')
| -rw-r--r-- | oryxc/src/arena.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/oryxc/src/arena.rs b/oryxc/src/arena.rs index 32d02ba..3dbd1f8 100644 --- a/oryxc/src/arena.rs +++ b/oryxc/src/arena.rs @@ -18,6 +18,9 @@ struct RawBlock { layout: Layout, } +unsafe impl Send for RawBlock {} +unsafe impl Sync for RawBlock {} + pub struct GlobalArena { blksz: usize, blocks: Mutex<Vec<RawBlock>>, |