Browse Source

add comment

221V 6 days ago
parent
commit
b0341da20c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      otest/thr5.odin

+ 2 - 0
otest/thr5.odin

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