Skip to content

Commit

Permalink
Merge pull request #14 from crystian/dev
Browse files Browse the repository at this point in the history
Potential fix to loop thread deadlock issue
  • Loading branch information
crystian authored Jan 11, 2024
2 parents c4ff152 + fbd499c commit d3b6607
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ You have predefined switches (string, latent, image, conditioning) but you can u

### Crystools

### 1.6.0 (11/01/2024)
- Fix issue [#7](https://github.com/crystian/ComfyUI-Crystools/issues/7) to the loop deadlock on concurrency

### 1.5.0 (10/01/2024)
- Improvements on the resources monitor and how handle the threads
- Some fixes
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@author: Crystian
@title: Crystools
@nickname: Crystools
@version: 1.5.0
@version: 1.6.0
@project: "https://github.com/crystian/ComfyUI-Crystools",
@description: Plugins for multiples uses, mainly for debugging, you need them! IG: https://www.instagram.com/crystian.ia
"""
Expand Down
2 changes: 1 addition & 1 deletion core/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "1.5.0"
version = "1.6.0"
4 changes: 3 additions & 1 deletion general/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from ..core import logger

# lock = threading.Lock()
lock = threading.Lock()


class CMonitor:
Expand Down Expand Up @@ -47,7 +47,9 @@ def startMonitor(self):
self.threadController.clear()

if self.monitorThread is None or not self.monitorThread.is_alive():
lock.acquire()
self.monitorThread = threading.Thread(target=self.monitorLoop)
lock.release()
self.monitorThread.daemon = True
self.monitorThread.start()

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.6.0

0 comments on commit d3b6607

Please sign in to comment.