Change thread.odin to use a rawptr rather than any

This commit is contained in:
gingerBill
2018-01-21 21:19:03 +00:00
parent 2ad26640a2
commit afb3033913

View File

@@ -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);