MCPcopy Create free account
hub / github.com/pyload/pyload / open

Method open

module/lib/beaker/container.py:159–170  ·  view source on GitHub ↗
(self, flags, checkcount=False)

Source from the content-addressed store, hash-verified

157 self.access_lock.release_write_lock()
158
159 def open(self, flags, checkcount=False):
160 self.mutex.acquire()
161 try:
162 if checkcount:
163 if self.openers == 0:
164 self.do_open(flags)
165 self.openers += 1
166 else:
167 self.do_open(flags)
168 self.openers = 1
169 finally:
170 self.mutex.release()
171
172 def close(self, checkcount=False):
173 self.mutex.acquire()

Callers 5

acquire_read_lockMethod · 0.95
acquire_write_lockMethod · 0.95
_openMethod · 0.45
_checkfileMethod · 0.45
do_openMethod · 0.45

Calls 3

do_openMethod · 0.95
acquireMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected