Changeset ce98816 for benchmark/io/http/main.cfa
- Timestamp:
- Jun 4, 2022, 2:43:16 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- f11296a
- Parents:
- c4b10e2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/main.cfa
rc4b10e2 rce98816 16 16 #include <fstream.hfa> 17 17 #include <kernel.hfa> 18 #include <locks.hfa> 18 19 #include <iofwd.hfa> 19 20 #include <stats.hfa> … … 39 40 Worker * workers; 40 41 int worker_cnt; 42 condition_variable(fast_block_lock) var; 41 43 }; 42 44 … … 57 59 or else {} 58 60 59 sleep(10`s);61 wait(this.var, 10`s); 60 62 61 63 print_stats_now( *active_cluster(), CFA_STATS_READY_Q | CFA_STATS_IO ); … … 342 344 for(i; options.clopts.nclusters) { 343 345 StatsPrinter * p = cl[i].prnt; 344 if(p) join(*p); 346 if(p) { 347 notify_one(p->var); 348 join(*p); 349 } 345 350 } 346 351 sout | "done";
Note: See TracChangeset
for help on using the changeset viewer.