buffer v1

This commit is contained in:
2026-06-08 17:06:27 +08:00
parent 509fc5a1d7
commit d741e3548f
3 changed files with 21 additions and 20 deletions

View File

@@ -185,7 +185,7 @@ class Decoder_main(threading.Thread):
def run(self):
while self.Runing:
# 当滤波数据大于5秒时启动滤波线程
if self.zmqServer.filterBuffer.GetDataLenCount() > self.device_info['sample_rate'] * 5:
if not self.sliding_filter.is_alive() and self.zmqServer.filterBuffer.GetDataLenCount() > self.device_info['sample_rate'] * 5:
algo_log("启动滤波线程", level="DEBUG")
self.sliding_filter.start()