diff options
| author | gingerBill <bill@gingerbill.org> | 2023-06-14 14:03:08 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-06-14 14:03:08 +0100 |
| commit | feacc5cd1176f93fc4b52c081d8ad93ed391df00 (patch) | |
| tree | 440b5afb4fd2a658f07a7a8309c52297fbeb95ba /examples | |
| parent | 3a761395bee4f14c81682d4c21a5aa1e9565959a (diff) | |
Basic enforcement of ordered named arguments/parameters for procedures
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 4b02bcd53..6863a7768 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, thread_count=N, allocator=context.allocator) + thread.pool_init(pool=&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, procedure=task_proc, data=nil, user_index=i, allocator=context.allocator) + thread.pool_add_task(pool=&pool, allocator=context.allocator, procedure=task_proc, data=nil, user_index=i) } thread.pool_start(&pool) |