-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use a single mutex in the thread pool
On macos, nkt was encountering a `_os_unfair_lock_corruption_abort` error, as acquiring the synchronization mutex whilst the thread pool was active somehow triggered UB. The fix is to use the same mutex for synchronizing the thread map as for the thread pool.
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters