Changeset 329e26a for benchmark/io/http/worker.cfa
- Timestamp:
- Jun 10, 2022, 5:02:03 PM (23 months ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 8419b76
- Parents:
- bf7c7ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/worker.cfa
rbf7c7ea r329e26a 116 116 //============================================================================================= 117 117 void ?{}( 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]++; 120 121 this.done = false; 121 122 } … … 150 151 //============================================================================================= 151 152 void ?{}( 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]++; 154 156 this.done = false; 155 157 } … … 181 183 } 182 184 183 void ?{}( Acceptor & this ) {184 ((thread&)this){ "Server Acceptor Thread", *options.clopts.instance , 64000 };185 options.clopts.thrd_cnt ++;185 void ?{}( Acceptor & this, int cli ) { 186 ((thread&)this){ "Server Acceptor Thread", *options.clopts.instance[cli], 64000 }; 187 options.clopts.thrd_cnt[cli]++; 186 188 this.done = false; 187 189 }
Note: See TracChangeset
for help on using the changeset viewer.