Ignore:
Timestamp:
Jun 10, 2022, 5:02:03 PM (23 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
8419b76
Parents:
bf7c7ea
Message:

Re-instated the isolate/multi-cluster option.

File:
1 edited

Legend:

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

    rbf7c7ea r329e26a  
    116116//=============================================================================================
    117117void ?{}( AcceptWorker & this ) {
    118         ((thread&)this){ "Server Worker Thread", *options.clopts.instance, 64000 };
    119         options.clopts.thrd_cnt++;
     118        size_t cli = rand() % options.clopts.cltr_cnt;
     119        ((thread&)this){ "Server Worker Thread", *options.clopts.instance[cli], 64000 };
     120        options.clopts.thrd_cnt[cli]++;
    120121        this.done = false;
    121122}
     
    150151//=============================================================================================
    151152void ?{}( ChannelWorker & this ) {
    152         ((thread&)this){ "Server Worker Thread", *options.clopts.instance, 64000 };
    153         options.clopts.thrd_cnt++;
     153        size_t cli = rand() % options.clopts.cltr_cnt;
     154        ((thread&)this){ "Server Worker Thread", *options.clopts.instance[cli], 64000 };
     155        options.clopts.thrd_cnt[cli]++;
    154156        this.done = false;
    155157}
     
    181183}
    182184
    183 void ?{}( Acceptor & this ) {
    184         ((thread&)this){ "Server Acceptor Thread", *options.clopts.instance, 64000 };
    185         options.clopts.thrd_cnt++;
     185void ?{}( Acceptor & this, int cli ) {
     186        ((thread&)this){ "Server Acceptor Thread", *options.clopts.instance[cli], 64000 };
     187        options.clopts.thrd_cnt[cli]++;
    186188        this.done = false;
    187189}
Note: See TracChangeset for help on using the changeset viewer.