MCPcopy Index your code
hub / github.com/ModelTC/LightLLM / is_empty

Method is_empty

lightllm/server/core/objs/out_token_circlequeue.py:59–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.tail = 0
58
59 def is_empty(self):
60 return self.head == self.tail
61
62 def is_full(self):
63 return (self.tail + 1) % LIGHTLLM_OUT_TOKEN_QUEUE_SIZE == self.head

Callers 8

popMethod · 0.95
peekMethod · 0.95
pop_no_retMethod · 0.95
test_queue_push_and_popFunction · 0.95
test_queue_wrap_aroundFunction · 0.95
can_releaseMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_queue_push_and_popFunction · 0.76
test_queue_wrap_aroundFunction · 0.76