Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/ctxswitch/cfa_cor.cfa

    rb4107c8 r2316525  
    44#include "bench.h"
    55
    6 coroutine GreatSuspender {};
    7 void main( __attribute__((unused)) GreatSuspender & this ) {
    8         while ( true ) {
     6coroutine C {} c;
     7void main( __attribute__((unused)) C & ) {
     8        while () {
    99                suspend();
    1010        }
     
    1212int main( int argc, char * argv[] ) {
    1313        BENCH_START()
    14         GreatSuspender s;
    1514        BENCH(
    16                 for ( i; times ) {
    17                         resume( s );
     15                for ( times ) {
     16                        resume( c );
    1817                },
    1918                result
Note: See TracChangeset for help on using the changeset viewer.