summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8b9ef22..821f803 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -66,6 +66,10 @@ impl Pidlock {
}
}
+ pub fn state(&self) -> &PidlockState {
+ &self.state
+ }
+
pub fn acquire(&mut self) -> PidlockResult {
match self.state {
PidlockState::New => {}