Changeset 121ac13 for src/tests/sched-ext.c
- Timestamp:
- Nov 6, 2017, 10:28:17 AM (7 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/sched-ext.c
r59a0bde r121ac13 32 32 void do_wait( global_t * mutex a ) { 33 33 sout | "Waiting to accept" | endl; 34 yield( rand 48(10) );34 yield( random( 10 ) ); 35 35 36 36 sout | "Accepting" | endl; … … 44 44 45 45 sout | "Accepted" | endl; 46 yield( rand 10() );46 yield( random( 10 ) ); 47 47 } 48 48 … … 64 64 void main( Acceptee* this ) { 65 65 while( !done ) { 66 yield( rand 10() );66 yield( random( 10 ) ); 67 67 do_notify( &globalA ); 68 yield( rand 10() );68 yield( random( 10 ) ); 69 69 } 70 70 } … … 74 74 int main(int argc, char* argv[]) { 75 75 done = false; 76 rand 48seed( time( NULL ) );76 random_seed( time( NULL ) ); 77 77 printf("%p\n", &globalA); 78 78 sout | "Starting" | endl;
Note: See TracChangeset
for help on using the changeset viewer.