MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / _release

Method _release

tools/filelock.py:367–379  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

365 return None
366
367 def _release(self):
368 fd = self._lock_file_fd
369 self._lock_file_fd = None
370 msvcrt.locking(fd, msvcrt.LK_UNLCK, 1)
371 os.close(fd)
372
373 try:
374 os.remove(self._lock_file)
375 # Probably another instance of the application
376 # that acquired the file lock.
377 except OSError:
378 pass
379 return None
380
381# Unix locking mechanism
382# ~~~~~~~~~~~~~~~~~~~~~~

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected