1. Radu Voicilas
  2. pypy

Commits

Armin Rigo  committed eca11e8

Fixes.

  • Participants
  • Parent commits aacfe8d
  • Branches tealet

Comments (0)

Files changed (2)

File pypy/module/tealet/interp_tealet.py

View file
     if main is None:
         raise TealetError("%s to a non-started-yet tealet" % funcname)
     assert isinstance(main, W_MainTealet)
-    if main.execution_context is not space.get_execution_context():
+    if main.executioncontext is not space.getexecutioncontext():
         raise TealetError("%s in a different thread" % funcname)
 
 # ____________________________________________________________
     r = space.allocate_instance(W_MainTealet, w_subtype)
     r.__init__()
     r.space = space
-    r.execution_context = space.get_execution_context()
+    r.executioncontext = space.getexecutioncontext()
     return space.wrap(r)
 
 def W_MainTealet_start(space, w_self, w_tealet):

File pypy/rlib/rtealet.py

View file
 ## ------------------------------------------------------------
 ## The code below is implementation details.
 
-## XXX No support for multithreading so far!
+## No support for multithreading!  The caller is responsible for not
+## mixing threads.
 
 class Switcher(object):
     current = None