std.Thread: Mutex and Condition improvements#11497
Conversation
Is this a problem with stage2 inline assembly? If so, I can work on this to unblock you asap. However if it's possible to work around this with non-assembly code, you can check for |
|
@andrewrk Seems like stage2 either doesn't properly lower the Also, the CI also says |
There was a problem hiding this comment.
LGTM! I can't really comment on the platform specific implementations, but the FutexImpls seem fine. Also, the Condition tests are quite good and can be reused for Semaphore when the time comes to update those.
Just some really minor typos/comments:
Main Goals
Side Goals
u64large sync primitives (if Futex is removed in the future, they can always be madeusizelarge).std.Thread.Futex.Deadlinefor accurately waiting on a Futex in a loop with a relative timeout.