mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
improve error message for uninitialized temp allocator pool on new
threads
This commit is contained in:
committed by
Christoffer Lerno
parent
a03d821602
commit
b48588ca8f
@@ -433,7 +433,7 @@ fn Allocator create_temp_allocator_on_demand() @private
|
||||
if (!auto_create_temp)
|
||||
{
|
||||
auto_create_temp = true;
|
||||
abort("Only the main thread pool is implicitly created. Use '@pool_init()' to enable the temp allocator on other threads.");
|
||||
abort("Use '@pool_init()' to enable the temp allocator on a new thread. A pool is implicitly created only on the main thread.");
|
||||
}
|
||||
return create_temp_allocator(base_allocator(), temp_allocator_size());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user