Commits

uniqx committed 8f7068f

... wip

  • Participants
  • Parent commits b1b9cce
  • Branches multiprocessing

Comments (0)

Files changed (2)

+
+
+
+

File pyld/process.py

 
   def run(self):
     while True:
+
+      # check for files to update
       if not self.update_file_queue.empty():
-        print self.update_file_queue.get_nowait()
-      time.sleep(1)
+        file_name = self.update_file_queue.get_nowait()
+        self.files[file_name]._execute_unload()
+        self.files[file_name]._read_and_compile_code_objects()
+        self.files[file_name]._execute_reload()
+
+      for file_name, pyld_file in d.iteritems():
+        pyld_file._execute_tick()
+
+      time.sleep(0)
 
   def update_file(self,file_name):
     self.update_file_queue.put_nowait(file_name)