Ignore:
Timestamp:
May 5, 2022, 11:37:12 AM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
00675a1
Parents:
8197ca5
Message:

Fixed libfibre tests after api change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/yield.cpp

    r8197ca5 r3b80db8  
    1010        unsigned long long count = 0;
    1111        for(;;) {
    12                 Fibre::forceYield();
     12                Fibre::yield();
    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( reinterpret_cast<void (*)(void *)>(fibre_main), nullptr );
     37                                threads[i] = new Fibre();
     38                                threads[i]->run(fibre_main);
    3839                        }
    3940                        printf("Starting\n");
Note: See TracChangeset for help on using the changeset viewer.