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

Method exclusive

libatomic/src/daemon/state.rs:56–58  ·  view source on GitHub ↗

Serialize repository database access: at most one open handle at a time for this repository. Acquire before any domain call.

(&self)

Source from the content-addressed store, hash-verified

54 /// Serialize repository database access: at most one open handle at a
55 /// time for this repository. Acquire before any domain call.
56 pub async fn exclusive(&self) -> tokio::sync::MutexGuard<'_, ()> {
57 self.gate.lock().await
58 }
59
60 /// Move maintenance exclusion into blocking work so cancelling its caller
61 /// cannot release the gate while that work is still using the database.

Callers 15

diff_working_copy_implFunction · 0.80
get_change_implFunction · 0.80
get_session_implFunction · 0.80
list_viewsMethod · 0.80
create_viewMethod · 0.80
switch_viewMethod · 0.80
delete_viewMethod · 0.80
set_view_scopeMethod · 0.80
split_viewMethod · 0.80
statusMethod · 0.80
logMethod · 0.80
add_filesMethod · 0.80

Calls 1

lockMethod · 0.80