MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / lock

Method lock

libatomic/src/daemon/sandbox_grants.rs:368–370  ·  view source on GitHub ↗

The registry's lock. A panic while it was held poisons the mutex; the registry's invariants do not depend on unwinding, so a poisoned lock is recovered rather than turning one bad request into every later request panicking.

(&self)

Source from the content-addressed store, hash-verified

366 /// is recovered rather than turning one bad request into every later
367 /// request panicking.
368 fn lock(&self) -> std::sync::MutexGuard<'_, Registry> {
369 self.inner.lock().unwrap_or_else(|e| e.into_inner())
370 }
371}
372
373impl SandboxGrants for InMemorySandboxGrants {

Callers 15

render_and_exitFunction · 0.80
runMethod · 0.80
runMethod · 0.80
run_verify_receiveFunction · 0.80
record_post_rewriteFunction · 0.80
startMethod · 0.80
updateMethod · 0.80
is_activeFunction · 0.80
latestFunction · 0.80
captureFunction · 0.80

Calls 1

into_innerMethod · 0.45