MCPcopy Create free account
hub / github.com/elast0ny/shared_memory / is_owner

Method is_owner

src/lib.rs:237–239  ·  view source on GitHub ↗

Returns whether we created the mapping or not

(&self)

Source from the content-addressed store, hash-verified

235impl Shmem {
236 /// Returns whether we created the mapping or not
237 pub fn is_owner(&self) -> bool {
238 self.config.owner
239 }
240 /// Allows for gaining/releasing ownership of the mapping
241 ///
242 /// Warning : You must ensure at least one process owns the mapping in order to ensure proper cleanup code is ran

Callers 2

increment_valueFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected