diff options
| author | gingerBill <bill@gingerbill.org> | 2018-08-04 23:14:55 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-08-04 23:14:55 +0100 |
| commit | cdbf831a7a6d9bc36e3cf76d525c44af88dc0a53 (patch) | |
| tree | ea6d0be0d032a77f6d7c0303be4dffd31c837412 /core/thread | |
| parent | 0718f14774c152b84edb747c03ca53b9400407b9 (diff) | |
Replace `context <- c {}` with `context = c;`. context assignments are scope based
Diffstat (limited to 'core/thread')
| -rw-r--r-- | core/thread/thread_windows.odin | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/thread/thread_windows.odin b/core/thread/thread_windows.odin index 369a61072..743f0fec8 100644 --- a/core/thread/thread_windows.odin +++ b/core/thread/thread_windows.odin @@ -29,13 +29,9 @@ create :: proc(procedure: Thread_Proc) -> ^Thread { if t.use_init_context { c = t.init_context; } + context = c; - exit := 0; - context <- c { - exit = t.procedure(t); - } - - return i32(exit); + return i32(t.procedure(t)); } |