]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/lock.py
Add debugger
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / lock.py
index 85d281ac8e576731e0362e67a36ad19d15c508da..9beafcde60c80b789b46839ae462c71245727593 100644 (file)
@@ -1,5 +1,7 @@
 import threading
 
+from . import debug_print
+
 class Lock:
     def __init__(self, lock_type):
         self.type = lock_type
@@ -12,10 +14,10 @@ class Lock:
         self.release(*args, **kwargs)
 
     def acquire(self, *args, **kwargs):
-        #print("acquiring lock for {}".format(self.type))
+        #debug_print("acquiring lock for {}".format(self.type))
         self.lock.acquire(*args, **kwargs)
 
     def release(self, *args, **kwargs):
-        #print("releasing lock for {}".format(self.type))
+        #debug_print("releasing lock for {}".format(self.type))
         self.lock.release(*args, **kwargs)