Changes in / [00675a12:7edd5c1]


Ignore:
Location:
benchmark/readyQ
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/churn.cpp

    r00675a12 r7edd5c1  
    5454                        Fibre * threads[nthreads];
    5555                        for(unsigned i = 0; i < nthreads; i++) {
    56                                 threads[i] = new Fibre();
    57                                 threads[i]->run(churner_main, &thddata[i]);
     56                                threads[i] = new Fibre( reinterpret_cast<void (*)(void *)>(churner_main), &thddata[i] );
    5857                        }
    5958                        printf("Starting\n");
  • benchmark/readyQ/cycle.cpp

    r00675a12 r7edd5c1  
    4646                        }
    4747                        for(unsigned i = 0; i < tthreads; i++) {
    48                                 threads[i] = new Fibre();
    49                                 threads[i]->run( partner_main, &thddata[i] );
     48                                threads[i] = new Fibre( reinterpret_cast<void (*)(void *)>(partner_main), &thddata[i] );
    5049                        }
    5150                        printf("Starting\n");
  • benchmark/readyQ/yield.cpp

    r00675a12 r7edd5c1  
    1010        unsigned long long count = 0;
    1111        for(;;) {
    12                 Fibre::yield();
     12                Fibre::forceYield();
    1313                count++;
    1414                if( clock_mode && stop) break;
     
    3535                        Fibre * threads[nthreads];
    3636                        for(unsigned i = 0; i < nthreads; i++) {
    37                                 threads[i] = new Fibre();
    38                                 threads[i]->run(fibre_main);
     37                                threads[i] = new Fibre( reinterpret_cast<void (*)(void *)>(fibre_main), nullptr );
    3938                        }
    4039                        printf("Starting\n");
Note: See TracChangeset for help on using the changeset viewer.