diff options
| author | gingerBill <bill@gingerbill.org> | 2023-06-21 01:17:05 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-06-21 01:17:05 +0100 |
| commit | 9b54b99bf696a65bc5c8358b2a5ace1f6dc4fdcc (patch) | |
| tree | 1e20f43aa33209caf9015d9b63384633eed455a4 /examples | |
| parent | 67ca9166d36375fd42725c16ca3933d4c91ebfee (diff) | |
Use positional and named arguments within the core library
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index 6863a7768..7c98ca728 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -1175,13 +1175,13 @@ threading_example :: proc() { N :: 3 pool: thread.Pool - thread.pool_init(pool=&pool, allocator=context.allocator, thread_count=N) + thread.pool_init(&pool, allocator=context.allocator, thread_count=N) defer thread.pool_destroy(&pool) for i in 0..<30 { // be mindful of the allocator used for tasks. The allocator needs to be thread safe, or be owned by the task for exclusive use - thread.pool_add_task(pool=&pool, allocator=context.allocator, procedure=task_proc, data=nil, user_index=i) + thread.pool_add_task(&pool, allocator=context.allocator, procedure=task_proc, data=nil, user_index=i) } thread.pool_start(&pool) |