mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 22:28:46 +00:00
Fix thread sanitizer errors surfaced by tests/core/io
This commit is contained in:
@@ -122,9 +122,10 @@ pool_join :: proc(pool: ^Pool) {
|
||||
for started_count < len(pool.threads) {
|
||||
started_count = 0
|
||||
for t in pool.threads {
|
||||
if .Started in t.flags {
|
||||
flags := intrinsics.atomic_load(&t.flags)
|
||||
if .Started in flags {
|
||||
started_count += 1
|
||||
if .Joined not_in t.flags {
|
||||
if .Joined not_in flags {
|
||||
join(t)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user