diff options
| author | hikari <ftphikari@gmail.com> | 2023-06-07 19:11:16 +0300 |
|---|---|---|
| committer | hikari <ftphikari@gmail.com> | 2023-06-07 19:11:16 +0300 |
| commit | dcf4e51787119d8dcf86ca0195d3a07aea6d47a8 (patch) | |
| tree | 0b5cc5674de634e52d4a2fdbdbee1618007801da /tests | |
| parent | 7dc09ed4501d0a7b256a05e6467cd86a262367ae (diff) | |
[core:thread] Added `self_cleanup` flag to properly auto-clean threads
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/documentation/documentation_tester.odin | 4 |
1 files changed, 2 insertions, 2 deletions
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 +} |