counts the number of TCP processes to start with; this number may * change during runtime due auto-scaling */
| 2373 | /* counts the number of TCP processes to start with; this number may |
| 2374 | * change during runtime due auto-scaling */ |
| 2375 | int tcp_count_processes(unsigned int *extra) |
| 2376 | { |
| 2377 | if (extra) *extra = 0; |
| 2378 | |
| 2379 | if (tcp_disabled) |
| 2380 | return 0; |
| 2381 | |
| 2382 | if (s_profile && extra && s_profile->max_procs > tcp_workers_no) |
| 2383 | *extra = s_profile->max_procs - tcp_workers_no; |
| 2384 | |
| 2385 | return 1 /* tcp main / IO process */ + tcp_workers_no /* dispatch workers */; |
| 2386 | } |
| 2387 | |
| 2388 | |
| 2389 | int tcp_start_processes(int *chd_rank, int *startup_done) |
no outgoing calls
no test coverage detected