cleaning
This commit is contained in:
@@ -160,16 +160,6 @@ pub struct AnalysisHandle {
|
||||
thread: Option<JoinHandle<()>>,
|
||||
}
|
||||
|
||||
impl AnalysisHandle {
|
||||
#[allow(dead_code)]
|
||||
pub fn shutdown(mut self) {
|
||||
self.running.store(false, Ordering::SeqCst);
|
||||
if let Some(t) = self.thread.take() {
|
||||
let _ = t.join();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for AnalysisHandle {
|
||||
fn drop(&mut self) {
|
||||
self.running.store(false, Ordering::SeqCst);
|
||||
|
||||
Reference in New Issue
Block a user