MCPcopy
hub / github.com/ModelTC/LightLLM / close_shm

Method close_shm

lightllm/server/core/objs/shm_array.py:45–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 return
44
45 def close_shm(self):
46 if self.shm is not None:
47 self.shm.close()
48 self.shm.unlink()
49 self.shm = None
50 self.arr = None

Callers 3

shm_arrayFunction · 0.95
test_close_shmFunction · 0.80

Calls 1

closeMethod · 0.45

Tested by 3

shm_arrayFunction · 0.76
test_close_shmFunction · 0.64