Changeset bf7c7ea for benchmark/io/http


Ignore:
Timestamp:
Jun 10, 2022, 4:13:05 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
329e26a
Parents:
c25338d
Message:

Moved printer and protocol thread to the main cluster

Location:
benchmark/io/http
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/printer.cfa

    rc25338d rbf7c7ea  
    4141
    4242void ?{}( StatsPrinter & this, cluster & cl ) {
    43         ((thread&)this){ "Stats Printer Thread", cl };
    44 
     43        ((thread&)this){ "Stats Printer Thread" };
     44        &this.cl = &cl;
    4545        memset(&this.stats, 0, sizeof(this.stats));;
    4646}
     
    5959                wait(this.var, 10`s);
    6060
    61                 print_stats_now( *active_cluster(), CFA_STATS_READY_Q | CFA_STATS_IO );
     61                print_stats_now( this.cl, CFA_STATS_READY_Q | CFA_STATS_IO );
    6262                {
    6363                        struct {
  • benchmark/io/http/printer.hfa

    rc25338d rbf7c7ea  
    4242        } stats;
    4343        condition_variable(fast_block_lock) var;
     44        cluster & cl;
    4445};
    4546
  • benchmark/io/http/protocol.cfa

    rc25338d rbf7c7ea  
    587587
    588588void ?{}( DateFormater & this ) {
    589         ((thread&)this){ "Server Date Thread", *options.clopts.instance };
     589        ((thread&)this){ "Server Date Thread" };
    590590        this.idx = 0;
    591591        memset( &this.buffers[0], 0, sizeof(this.buffers[0]) );
Note: See TracChangeset for help on using the changeset viewer.