Changes in src/tests/sched-int-block.c [6c7b1e7:9fe39530]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/sched-int-block.c
r6c7b1e7 r9fe39530 49 49 wait( &cond, (uintptr_t)this_thread ); 50 50 51 yield( random( 10 ));51 yield( ((unsigned)rand48()) % 10 ); 52 52 53 53 if(a.last_thread != a.last_signaller || b.last_thread != b.last_signaller ) { … … 58 58 a.last_thread = b.last_thread = this_thread; 59 59 60 yield( random( 10 ));60 yield( ((unsigned)rand48()) % 10 ); 61 61 } 62 62 … … 70 70 //------------------------------------------------------------------------------ 71 71 void signal_op( global_data_t & mutex a, global_data_t & mutex b ) { 72 yield( random( 10 ));72 yield( ((unsigned)rand48()) % 10 ); 73 73 74 74 [a.last_thread, b.last_thread, a.last_signaller, b.last_signaller] = this_thread; … … 83 83 } 84 84 85 yield( random( 10 ));85 yield( ((unsigned)rand48()) % 10 ); 86 86 87 87 if(a.last_thread != next || b.last_thread != next) { … … 118 118 119 119 int main(int argc, char* argv[]) { 120 rand om_seed( time( NULL ) );120 rand48seed( time( NULL ) ); 121 121 done = false; 122 122 processor p;
Note:
See TracChangeset
for help on using the changeset viewer.