From dcf4e51787119d8dcf86ca0195d3a07aea6d47a8 Mon Sep 17 00:00:00 2001 From: hikari Date: Wed, 7 Jun 2023 19:11:16 +0300 Subject: [core:thread] Added `self_cleanup` flag to properly auto-clean threads --- tests/documentation/documentation_tester.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/documentation') diff --git a/tests/documentation/documentation_tester.odin b/tests/documentation/documentation_tester.odin index 086060000..a4d18d1eb 100644 --- a/tests/documentation/documentation_tester.odin +++ b/tests/documentation/documentation_tester.odin @@ -290,7 +290,7 @@ _bad_test_found: bool @(private="file") _spawn_pipe_reader :: proc() { - thread.create_and_start(proc(^thread.Thread) { + thread.run(proc() { stream := os.stream_from_handle(_read_pipe) reader := io.to_reader(stream) sync.post(&_pipe_reader_semaphore) // notify thread is ready @@ -467,4 +467,4 @@ main :: proc() { run_test_suite :: proc() -> bool { return libc.system(fmt.caprintf("%v run verify", g_path_to_odin)) == 0 -} \ No newline at end of file +} -- cgit v1.2.3