class_docstr: Parallel Python SMP execution server class
      
class_docstr_tok: ["Parallel","Python","SMP","execution","server","class"]
docstr: Waits for all jobs in a given group to finish.
  If group is omitted waits for all jobs to finish
docstr_tok: ["Waits","for","all","jobs","in","a","given","group","to","finish",".","If","group","is","omitted","waits","for","all","jobs","to","finish"]
code: def wait(self, group=None):
      """Waits for all jobs in a given group to finish.
      If group is omitted waits for all jobs to finish
      """
      while True:
          self.__waittasks_lock.acquire()
          for task in self.__waittasks:
              if not group or task.group == group:
                  self.__waittasks_lock.release()
                  task.wait()
                  break
          else:
              self.__waittasks_lock.release()
              break
  
imports: import os
  import threading
  import logging
  import inspect
  import sys
  import types
  import time
  import atexit
  from .None import transport
  from .None import auto
  from .None import common
  import subprocess
label_desc: Use image node_id 3 for calling the Server obj's underlying member method code with example usage: obj.wait(group) without return types