|
@@ -26,6 +26,7 @@ main :: proc(){
|
|
|
|
|
|
threadPool :thread.Pool
|
|
|
//thread.pool_init(&threadPool, context.allocator, 5)
|
|
|
+ //thread.pool_init(&threadPool, context.allocator, 35_000) // fails
|
|
|
thread.pool_init(&threadPool, context.allocator, 30_000)
|
|
|
thread.pool_start(&threadPool)
|
|
|
defer thread.pool_destroy(&threadPool)
|
|
@@ -35,6 +36,7 @@ main :: proc(){
|
|
|
mem.arena_init(&client_arena, make([]u8, 64))
|
|
|
client_allocator := mem.arena_allocator(&client_arena)
|
|
|
//for i := 0; i < 5; i += 1 {
|
|
|
+ //for i := 0; i < 35_000; i += 1 { // fails
|
|
|
for i := 0; i < 30_000; i += 1 {
|
|
|
thread.pool_add_task(&threadPool, client_allocator, worker, &{}, i)
|
|
|
}
|