Finished adding multi-threaded extraction.
Added option in unsquashfs to specify the number of threads used. Changed some functions to accept an allocator instead of just using Archive's Fixed run_tests.sh due to new c libraries
This commit is contained in:
@@ -56,7 +56,6 @@ pub fn init(alloc: std.mem.Allocator, fil: File) !Archive {
|
||||
fil,
|
||||
0,
|
||||
try std.Thread.getCpuCount(),
|
||||
@min(DEFAULT_MEM_SIZE, try std.process.totalSystemMemory() / 2),
|
||||
);
|
||||
}
|
||||
/// Create the Archive dictating the amount of threads & memory used.
|
||||
|
||||
Reference in New Issue
Block a user