improve error message for uninitialized temp allocator pool on new

threads
This commit is contained in:
walther chen
2025-03-23 19:34:50 +07:00
committed by Christoffer Lerno
parent a03d821602
commit b48588ca8f

View File

@@ -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());
}