Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
pop
Method · 0.95
peek
Method · 0.95
pop_no_ret
Method · 0.95
test_queue_initialization
Function · 0.95
test_queue_push_and_pop
Function · 0.95
test_queue_push_multiple_items
Function · 0.95
test_queue_wrap_around
Function · 0.95
can_release
Method · 0.45
Calls
no outgoing calls
Tested by
4
test_queue_initialization
Function · 0.76
test_queue_push_and_pop
Function · 0.76
test_queue_push_multiple_items
Function · 0.76
test_queue_wrap_around
Function · 0.76