Beremiz_service.py
changeset 2249 602fdd08dfab
parent 2245 fe3394697b02
child 2270 d9175daf6522
child 2294 da288f63612f
--- a/Beremiz_service.py	Wed Aug 08 10:15:51 2018 +0200
+++ b/Beremiz_service.py	Wed Aug 08 10:17:19 2018 +0200
@@ -30,7 +30,7 @@
 import sys
 import getopt
 import threading
-from threading import Thread, currentThread, Semaphore, Lock
+from threading import Thread, Semaphore, Lock
 import traceback
 import __builtin__
 import Pyro
@@ -499,6 +499,7 @@
 
 if havewx:
     wx_eval_lock = Semaphore(0)
+    # FIXME : beware wx mainloop is _not_ running in main thread
     # main_thread = currentThread()
 
     def statuschangeTskBar(status):
@@ -512,6 +513,7 @@
         wx_eval_lock.release()
 
     def evaluator(tocall, *args, **kwargs):
+        # FIXME : should implement anti-deadlock
         # if main_thread == currentThread():
         #     # avoid dead lock if called from the wx mainloop
         #     return default_evaluator(tocall, *args, **kwargs)