Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thread::unpark: Avoid notifying with mutex locked.
This means when the other thread wakes it can continue right away instead of having to wait for the mutex. Also add some comments explaining why the mutex needs to be locked in the first place.
- Loading branch information