mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
[core:thread] Fix compilation
This commit is contained in:
@@ -69,6 +69,8 @@ _create :: proc(procedure: Thread_Proc, priority: Thread_Priority) -> ^Thread {
|
|||||||
|
|
||||||
if t.self_cleanup {
|
if t.self_cleanup {
|
||||||
t.unix_thread = {}
|
t.unix_thread = {}
|
||||||
|
// NOTE(ftphikari): It doesn't matter which context 'free' received, right?
|
||||||
|
context = {}
|
||||||
free(t, t.creation_allocator)
|
free(t, t.creation_allocator)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ _create :: proc(procedure: Thread_Proc, priority: Thread_Priority) -> ^Thread {
|
|||||||
if t.self_cleanup {
|
if t.self_cleanup {
|
||||||
win32.CloseHandle(t.win32_thread)
|
win32.CloseHandle(t.win32_thread)
|
||||||
t.win32_thread = win32.INVALID_HANDLE
|
t.win32_thread = win32.INVALID_HANDLE
|
||||||
|
// NOTE(ftphikari): It doesn't matter which context 'free' received, right?
|
||||||
|
context = {}
|
||||||
free(t, t.creation_allocator)
|
free(t, t.creation_allocator)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user