Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/CorCtxSwitch.c

    rf1dd17a r7d9c987  
    77coroutine GreatSuspender {};
    88
    9 void ?{}( GreatSuspender & this ) {
     9void ?{}( GreatSuspender * this ) {
    1010        prime(this);
    1111}
    1212
    13 void main( GreatSuspender & this )
     13void main( GreatSuspender * this )
    1414{
    1515        while( true ) {
     
    1818}
    1919
    20 void resumer( GreatSuspender & this, const unsigned int NoOfTimes ) {
     20void resumer( GreatSuspender * this, const unsigned int NoOfTimes ) {
    2121        for ( volatile unsigned int i = 0; i < NoOfTimes; i += 1 ) {
    2222                resume( this );
     
    3131
    3232        StartTime = Time();
    33         resumer( s, NoOfTimes );
     33        resumer( &s, NoOfTimes );
    3434        EndTime = Time();
    3535
Note: See TracChangeset for help on using the changeset viewer.