Moved thread stuff into a directory

This commit is contained in:
2025-01-12 00:11:03 +01:00
parent d775ff1d0a
commit c0e8b07025
9 changed files with 236 additions and 244 deletions
+1 -8
View File
@@ -28,14 +28,7 @@ pub fn deinit(self: *UUIDIndexMap) void {
}
pub fn put(self: *UUIDIndexMap, uuid: UUID, file_index: usize) !void {
const allocator = self.arena.allocator();
const new_uuid = try allocator.create(UUID);
new_uuid.* = uuid;
const new_file_index = try allocator.create(usize);
new_file_index.* = file_index;
try self.map.*.put(new_uuid.*, new_file_index.*);
try self.map.*.put(uuid, file_index);
}
pub fn contains(self: UUIDIndexMap, uuid: UUID) bool {