Ignore:
Timestamp:
Mar 25, 2019, 10:07:13 AM (4 years ago)
Author:
tdelisle <tdelisle@…>
Branches:
arm-eh, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
5b993e0
Parents:
7a8f5246 (diff), e73d449 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 moved

Legend:

Unmodified
Added
Removed
  • doc/papers/concurrency/examples/Pingpong.py

    r7a8f5246 rd4a60ac  
    1 i = 0
     1def Scheduler
     2try:
     3        yield from ping();
     4        yield from pong();
     5except StopIteration:
     6        print( "Scheduler stop" )
     7
     8
    29def pong():
    3         global i
    410        print( "pong" )
    5         if i < 4:
     11for i in range( 10 ):
     12
    613                yield from ping()
    714        print( "stop pong" )
Note: See TracChangeset for help on using the changeset viewer.