Skip to content

std.Thread: ResetEvent improvements#11523

Merged
kprotty merged 13 commits into
ziglang:masterfrom
kprotty:thread-reset-event
Apr 26, 2022
Merged

std.Thread: ResetEvent improvements#11523
kprotty merged 13 commits into
ziglang:masterfrom
kprotty:thread-reset-event

Conversation

@kprotty

@kprotty kprotty commented Apr 25, 2022

Copy link
Copy Markdown
Contributor

Main Goals

  • Removes StaticResetEvent and makes ResetEvent statically initializable.
  • Removes AutoResetEvent and replaces all uses of it with ResetEvent.

Side Goals

  • Introduce builtin.sanitize_thread to detect when being compiled with TSan (LLVM Thread Sanitizer)
  • Introduce Atomic.fence which differs from atomic.fence as it takes an atomic variable and cooperates with tsan since tsan generates false positives with normal fences.

Closes

@kprotty kprotty added the standard library This issue involves writing Zig code for the standard library. label Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

standard library This issue involves writing Zig code for the standard library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant