Changes in src/tests/sched-ext.c [6c7b1e7:e1e8408]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/sched-ext.c
r6c7b1e7 re1e8408 32 32 void do_wait( global_t * mutex a ) { 33 33 sout | "Waiting to accept" | endl; 34 yield( rand om( 10) );34 yield( rand48(10) ); 35 35 36 36 sout | "Accepting" | endl; … … 44 44 45 45 sout | "Accepted" | endl; 46 yield( rand om( 10) );46 yield( rand10() ); 47 47 } 48 48 … … 64 64 void main( Acceptee* this ) { 65 65 while( !done ) { 66 yield( rand om( 10) );66 yield( rand10() ); 67 67 do_notify( &globalA ); 68 yield( rand om( 10) );68 yield( rand10() ); 69 69 } 70 70 } … … 74 74 int main(int argc, char* argv[]) { 75 75 done = false; 76 rand om_seed( time( NULL ) );76 rand48seed( time( NULL ) ); 77 77 printf("%p\n", &globalA); 78 78 sout | "Starting" | endl;
Note: See TracChangeset
for help on using the changeset viewer.