MCPcopy Create free account
hub / github.com/VITA-MLLM/VITA-Audio / __init__

Method __init__

web/queue.py:87–98  ·  view source on GitHub ↗

Initialize the ThreadSafeQueue with an empty queue and a lock for thread safety. Parameters: - None Returns: - None

(self)

Source from the content-addressed store, hash-verified

85
86class ThreadSafeQueue:
87 def __init__(self):
88 """
89 Initialize the ThreadSafeQueue with an empty queue and a lock for thread safety.
90
91 Parameters:
92 - None
93
94 Returns:
95 - None
96 """
97 self._queue = queue.Queue()
98 self._lock = threading.Lock()
99
100 def put(self, item):
101 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected