Changes in src/benchmark/CorCtxSwitch.c [7d9c987:f1dd17a]
- File:
-
- 1 edited
-
src/benchmark/CorCtxSwitch.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/CorCtxSwitch.c
r7d9c987 rf1dd17a 7 7 coroutine GreatSuspender {}; 8 8 9 void ?{}( GreatSuspender *this ) {9 void ?{}( GreatSuspender & this ) { 10 10 prime(this); 11 11 } 12 12 13 void main( GreatSuspender *this )13 void main( GreatSuspender & this ) 14 14 { 15 15 while( true ) { … … 18 18 } 19 19 20 void resumer( GreatSuspender *this, const unsigned int NoOfTimes ) {20 void resumer( GreatSuspender & this, const unsigned int NoOfTimes ) { 21 21 for ( volatile unsigned int i = 0; i < NoOfTimes; i += 1 ) { 22 22 resume( this ); … … 31 31 32 32 StartTime = Time(); 33 resumer( &s, NoOfTimes );33 resumer( s, NoOfTimes ); 34 34 EndTime = Time(); 35 35
Note:
See TracChangeset
for help on using the changeset viewer.