mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 05:20:28 +00:00
[core:thread] Added self_cleanup flag to properly auto-clean threads
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user