aboutsummaryrefslogtreecommitdiff
path: root/modules/call_queue.py
diff options
context:
space:
mode:
authorAnyISalIn <anyisalin@gmail.com>2023-08-21 17:48:56 +0800
committerAnyISalIn <anyisalin@gmail.com>2023-08-21 17:49:58 +0800
commit71a0f6ef85f2124d5fb25b55d6ec577a56265fe4 (patch)
tree9d21f02c56d8dfc0316bc832207d5b0257365649 /modules/call_queue.py
parent42b72fe2463bc06a97935bc7a7770a9d562269d8 (diff)
feat: replace threading.Lock() to FIFOLock
Signed-off-by: AnyISalIn <anyisalin@gmail.com>
Diffstat (limited to 'modules/call_queue.py')
-rw-r--r--modules/call_queue.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/call_queue.py b/modules/call_queue.py
index f2eb17d6..ddf0d573 100644
--- a/modules/call_queue.py
+++ b/modules/call_queue.py
@@ -1,11 +1,10 @@
from functools import wraps
import html
-import threading
import time
-from modules import shared, progress, errors, devices
+from modules import shared, progress, errors, devices, fifo_lock
-queue_lock = threading.Lock()
+queue_lock = fifo_lock.FIFOLock()
def wrap_queued_call(func):