-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement RefUnwindSafe for StatsdClient
Make sure that the StatsdClient is unwind (panic) safe by ensuring that pointers to sinks and error handlers require the object to be unwind safe. Make the QueuingMetricSink unwind safe by not using a CondVar and Mutex but instead using an AtomicBool to indicate when the worker is stopped. Additionally, assert that the Crossbeam MsQueue is unwind safe because it implements Sync. See rust-lang/rust#54768 Fixes #77
- Loading branch information
1 parent
634698b
commit dd2443d
Showing
2 changed files
with
151 additions
and
37 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
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