diff options
| author | Mikkel Hjortshoej <fyoucon@gmail.com> | 2018-02-25 14:38:55 +0100 |
|---|---|---|
| committer | Mikkel Hjortshoej <fyoucon@gmail.com> | 2018-02-25 14:56:50 +0100 |
| commit | ffec1c77f27d87a50de540887775b0ff3e97a6be (patch) | |
| tree | 3a576b5e00f4d2b41e1a8de6baff4c83883356ae /core/thread.odin | |
| parent | 53571814844976749c8ed27fe6a77c6dd49e627b (diff) | |
Added terminate_thread to thread.odin
Diffstat (limited to 'core/thread.odin')
| -rw-r--r-- | core/thread.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/thread.odin b/core/thread.odin index 368abc204..71701a5a1 100644 --- a/core/thread.odin +++ b/core/thread.odin @@ -74,3 +74,7 @@ destroy :: proc(thread: ^Thread) { join(thread); free(thread); } + +terminate :: proc(using thread : ^Thread, exit_code : u32) { + win32.terminate_thread(win32_thread, exit_code); +}
\ No newline at end of file |