Added terminate_thread to thread.odin

This commit is contained in:
Mikkel Hjortshoej
2018-02-25 14:38:55 +01:00
parent 1cd453db14
commit 33ddb3ad4d
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -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);
}