diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2024-07-28 01:29:33 -0700 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2024-07-28 01:29:33 -0700 |
| commit | 27f75c40abdb6172e1b498b432555c2d5d3ba415 (patch) | |
| tree | 0ef555ab77d1ebe81dff3011d9048678bbd851ec /core/prof | |
| parent | 1d598f82873ca0519b79e8e36f79d7ef86bf85ab (diff) | |
make example compile
Diffstat (limited to 'core/prof')
| -rw-r--r-- | core/prof/spall/doc.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/prof/spall/doc.odin b/core/prof/spall/doc.odin index 479ee7e46..d9259465b 100644 --- a/core/prof/spall/doc.odin +++ b/core/prof/spall/doc.odin @@ -1,4 +1,5 @@ /* + import "base:runtime" import "core:prof/spall" import "core:sync" @@ -14,7 +15,7 @@ defer spall.context_destroy(&spall_ctx) buffer_backing := make([]u8, spall.BUFFER_DEFAULT_SIZE) - spall_buffer = spall.buffer_create(buffer_backing, sync.current_thread_id) + spall_buffer = spall.buffer_create(buffer_backing, u32(sync.current_thread_id())) defer spall.buffer_destroy(&spall_ctx, &spall_buffer) spall.SCOPED_EVENT(&spall_ctx, &spall_buffer, #procedure) |