Ignore:
Timestamp:
Nov 6, 2017, 10:28:17 AM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
bbeb908
Parents:
59a0bde (diff), 9f4524b (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 edited

Legend:

Unmodified
Added
Removed
  • src/tests/sched-ext.c

    r59a0bde r121ac13  
    3232void do_wait( global_t * mutex a ) {
    3333        sout | "Waiting to accept" | endl;
    34         yield( rand48(10) );
     34        yield( random( 10 ) );
    3535
    3636        sout | "Accepting" | endl;
     
    4444
    4545        sout | "Accepted" | endl;
    46         yield( rand10() );
     46        yield( random( 10 ) );
    4747}
    4848
     
    6464void main( Acceptee* this ) {
    6565        while( !done ) {
    66                 yield( rand10() );
     66                yield( random( 10 ) );
    6767                do_notify( &globalA );
    68                 yield( rand10() );
     68                yield( random( 10 ) );
    6969        }
    7070}
     
    7474int main(int argc, char* argv[]) {
    7575        done = false;
    76         rand48seed( time( NULL ) );
     76        random_seed( time( NULL ) );
    7777        printf("%p\n", &globalA);
    7878        sout | "Starting" | endl;
Note: See TracChangeset for help on using the changeset viewer.