aboutsummaryrefslogtreecommitdiff
path: root/core/thread
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-12-31 12:15:19 +0000
committergingerBill <bill@gingerbill.org>2019-12-31 12:15:19 +0000
commitab52f8d795ca836925162b8ba92d0a77ea7db50a (patch)
tree467d59e7ebb3f71523b6fc2041409654cd9cdcde /core/thread
parent7e271310ff7a844270a981bb8fc1f961bb45f319 (diff)
Move definition of mem.Allocator and log.Logger to `package runtime`, to reduce import cycle magic
Diffstat (limited to 'core/thread')
-rw-r--r--core/thread/thread_windows.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/thread/thread_windows.odin b/core/thread/thread_windows.odin
index 79ebe48d6..fb8915057 100644
--- a/core/thread/thread_windows.odin
+++ b/core/thread/thread_windows.odin
@@ -37,8 +37,8 @@ create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^T
t.procedure(t);
if !t.use_init_context {
- if context.temp_allocator.data == &runtime.global_scratch_allocator_data {
- runtime.global_scratch_allocator_destroy(auto_cast context.temp_allocator.data);
+ if context.temp_allocator.data == &runtime.global_default_temp_allocator_data {
+ runtime.default_temp_allocator_destroy(auto_cast context.temp_allocator.data);
}
}