Changeset d11d6eb for benchmark/io/http/main.cfa
- Timestamp:
- Aug 28, 2020, 1:26:28 PM (3 years ago)
- Branches:
- ADT, arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 8e3034d
- Parents:
- 8e2cb4a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/main.cfa
r8e2cb4a rd11d6eb 12 12 #include <kernel.hfa> 13 13 #include <stats.hfa> 14 #include <time.hfa> 14 15 #include <thread.hfa> 15 16 … … 18 19 #include "options.hfa" 19 20 #include "worker.hfa" 21 22 extern void register_fixed_files( cluster &, int *, unsigned count ); 23 24 Duration default_preemption() { 25 return 0; 26 } 20 27 21 28 //============================================================================================= … … 84 91 // Run Server Cluster 85 92 { 86 cluster cl = { "Server Cluster", options.clopts. flags };93 cluster cl = { "Server Cluster", options.clopts.params }; 87 94 #if !defined(__CFA_NO_STATISTICS__) 88 95 print_stats_at_exit( cl, CFA_STATS_READY_Q | CFA_STATS_IO ); … … 102 109 } 103 110 111 if(options.file_cache.fixed_fds) { 112 register_fixed_files(cl, fds, pipe_off); 113 } 114 104 115 { 105 116 ServerProc procs[options.clopts.nprocs]; … … 107 118 Worker workers[options.clopts.nworkers]; 108 119 for(i; options.clopts.nworkers) { 109 if( options.file_cache.fixed_fds ) { 110 workers[i].pipe[0] = pipe_off + (i * 2) + 0; 111 workers[i].pipe[1] = pipe_off + (i * 2) + 1; 112 } 113 else { 120 // if( options.file_cache.fixed_fds ) { 121 // workers[i].pipe[0] = pipe_off + (i * 2) + 0; 122 // workers[i].pipe[1] = pipe_off + (i * 2) + 1; 123 // } 124 // else 125 { 114 126 workers[i].pipe[0] = fds[pipe_off + (i * 2) + 0]; 115 127 workers[i].pipe[1] = fds[pipe_off + (i * 2) + 1];
Note: See TracChangeset
for help on using the changeset viewer.