mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- AnyList now also defaults to the temp allocator.
- `os::getcwd` and `os::get_home_dir` requires an explicit allocator. - `file::load_new` and `file::load_path_new` removed.
This commit is contained in:
@@ -116,7 +116,7 @@ fn void? FixedThreadPool.push(&self, ThreadPoolFn func, args...)
|
||||
if (args.len)
|
||||
{
|
||||
data = mem::alloc_array(any, args.len);
|
||||
foreach (i, arg : args) data[i] = allocator::clone_any(allocator::heap(), arg);
|
||||
foreach (i, arg : args) data[i] = allocator::clone_any(mem, arg);
|
||||
}
|
||||
self.queue[self.qindex] = { .func = func, .args = data };
|
||||
self.qindex++;
|
||||
|
||||
Reference in New Issue
Block a user