Changeset 4f762d3 for benchmark/io/http/main.cfa
- Timestamp:
- Feb 19, 2021, 1:48:14 PM (2 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d60d30e
- Parents:
- 78da4ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/main.cfa
r78da4ab r4f762d3 47 47 } 48 48 #endif 49 } 50 51 struct ServerIoContext { 52 io_context self; 53 }; 54 55 void ?{}( ServerIoContext & this ) { 56 /* paranoid */ assert( options.clopts.instance != 0p ); 57 (this.self){ *options.clopts.instance }; 49 58 } 50 59 … … 153 162 } 154 163 155 if(options.file_cache.path && options.file_cache.fixed_fds) {156 register_fixed_files(cl, fds, pipe_off);157 }164 // if(options.file_cache.path && options.file_cache.fixed_fds) { 165 // register_fixed_files(cl, fds, pipe_off); 166 // } 158 167 159 168 { 160 169 ServerProc procs[options.clopts.nprocs]; 161 StatsPrinter printer; 170 ServerIoContext ioctxs[options.clopts.nprocs]; 171 // StatsPrinter printer; 162 172 163 173 init_protocol(); … … 183 193 { 184 194 char buffer[128]; 185 while(int ret = cfa_read(0, buffer, 128, 0 , -1`s, 0p, 0p); ret != 0) {195 while(int ret = cfa_read(0, buffer, 128, 0); ret != 0) { 186 196 if(ret < 0) abort( "main read error: (%d) %s\n", (int)errno, strerror(errno) ); 187 197 } … … 193 203 for(i; options.clopts.nworkers) { 194 204 workers[i].done = true; 195 cancel(workers[i].cancel);196 205 } 197 206 sout | "done";
Note: See TracChangeset
for help on using the changeset viewer.