Skip to content

Commit

Permalink
Make methods for AsyncInterrupt public
Browse files Browse the repository at this point in the history
  • Loading branch information
dewert99 authored and c-cube committed Mar 17, 2024
1 parent 0419daa commit 6cc3b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/batsat/src/callbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ impl Default for AsyncInterrupt {

impl AsyncInterrupt {
/// Return an [`AsyncInterruptHandle`] that can be used to interrupt the solver
fn get_handle(&self) -> AsyncInterruptHandle {
pub fn get_handle(&self) -> AsyncInterruptHandle {
AsyncInterruptHandle(self.0.clone())
}
}

impl AsyncInterruptHandle {
/// Interrupt the solver
fn interrupt_async(&self) {
pub fn interrupt_async(&self) {
self.0.store(true, Ordering::SeqCst)
}
}

0 comments on commit 6cc3b2e

Please sign in to comment.