diff options
| author | gingerBill <bill@gingerbill.org> | 2018-01-21 21:19:03 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-01-21 21:19:03 +0000 |
| commit | afb3033913545cb2b06e5d60feb2b0245e8d44f1 (patch) | |
| tree | bccf0251f40d3a0dbee77cdadd32f455c21fceb5 | |
| parent | 2ad26640a2c8579e9a9942355868d8d0fed7d569 (diff) | |
Change `thread.odin` to use a `rawptr` rather than `any`
| -rw-r--r-- | core/thread.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/thread.odin b/core/thread.odin index 2b5f304ff..4bc5e4987 100644 --- a/core/thread.odin +++ b/core/thread.odin @@ -14,7 +14,7 @@ Thread_Os_Specific :: struct { Thread :: struct { using specific: Thread_Os_Specific, procedure: Thread_Proc, - data: any, + data: rawptr, user_index: int, init_context: Context, @@ -69,6 +69,7 @@ join :: proc(using thread: ^Thread) { win32.close_handle(win32_thread); win32_thread = win32.INVALID_HANDLE; } + destroy :: proc(thread: ^Thread) { join(thread); free(thread); |