Browse Source

Change `thread.odin` to use a `rawptr` rather than `any`

gingerBill 7 years ago
parent
commit
afb3033913
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/thread.odin

+ 2 - 1
core/thread.odin

@@ -14,7 +14,7 @@ Thread_Os_Specific :: struct {
 Thread :: struct {
 Thread :: struct {
 	using specific:   Thread_Os_Specific,
 	using specific:   Thread_Os_Specific,
 	procedure:        Thread_Proc,
 	procedure:        Thread_Proc,
-	data:             any,
+	data:             rawptr,
 	user_index:       int,
 	user_index:       int,
 
 
 	init_context:     Context,
 	init_context:     Context,
@@ -69,6 +69,7 @@ join :: proc(using thread: ^Thread) {
 	win32.close_handle(win32_thread);
 	win32.close_handle(win32_thread);
 	win32_thread = win32.INVALID_HANDLE;
 	win32_thread = win32.INVALID_HANDLE;
 }
 }
+
 destroy :: proc(thread: ^Thread) {
 destroy :: proc(thread: ^Thread) {
 	join(thread);
 	join(thread);
 	free(thread);
 	free(thread);