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/sys | |
| parent | 53571814844976749c8ed27fe6a77c6dd49e627b (diff) | |
Added terminate_thread to thread.odin
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/windows.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/sys/windows.odin b/core/sys/windows.odin index 54a4c3705..40abc8f8c 100644 --- a/core/sys/windows.odin +++ b/core/sys/windows.odin @@ -681,7 +681,8 @@ foreign kernel32 { @(link_name="ResumeThread") resume_thread :: proc(thread: Handle) -> u32 ---;
@(link_name="GetThreadPriority") get_thread_priority :: proc(thread: Handle) -> i32 ---;
@(link_name="SetThreadPriority") set_thread_priority :: proc(thread: Handle, priority: i32) -> Bool ---;
- @(link_name="GetExitCodeThread") get_exit_code_thread :: proc(thread: Handle, exit_code: ^u32) -> Bool ---;
+ @(link_name="GetExitCodeThread") get_exit_code_thread :: proc(thread: Handle, exit_code: ^u32) -> Bool ---;
+ @(link_name="TerminateThread") terminate_thread :: proc(thread: Handle, exit_code: u32) -> Bool ---;
@(link_name="InitializeCriticalSection") initialize_critical_section :: proc(critical_section: ^Critical_Section) ---;
@(link_name="InitializeCriticalSectionAndSpinCount") initialize_critical_section_and_spin_count :: proc(critical_section: ^Critical_Section, spin_count: u32) ---;
|