Ejemplo n.º 1
0
 def init(self, config):
     self.stacklet = StackletThread(config)
     self.current = Greenlet(
         self.stacklet.get_null_handle(),
         True)
Ejemplo n.º 2
0
 def __init__(self, language_process):
     AbstractLanguageRunner.__init__(self, language_process)
     self.sthread = StackletThread()
     global_execution_state.origin = self
     # there can only be one valid handle at a time (main or foreign thread)
     self.handle = self.sthread.new(self.__class__.new_stacklet_callback)