Skip to content

Commit 1ccffc5

Browse files
AlexanderGrissikgalnoam
authored andcommitted
issue: 4610737 Fixing up params for threads mode
At this stage thread mode requires busy polling for non blocking sockets. There is no need for progress engine since worker threads already poll the rings. Signed-off-by: Alexander Grissik <[email protected]>
1 parent 14d9484 commit 1ccffc5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/core/util/sys_vars.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2991,6 +2991,16 @@ void mce_sys_var::get_params()
29912991
exit(-1);
29922992
}
29932993
}
2994+
2995+
fixup_params();
2996+
}
2997+
2998+
void mce_sys_var::fixup_params()
2999+
{
3000+
if (is_threads_mode()) {
3001+
select_poll_num = -1;
3002+
progress_engine_interval_msec = 0;
3003+
}
29943004
}
29953005

29963006
void set_env_params()

src/core/util/sys_vars.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ struct mce_sys_var {
292292

293293
// Update parameters for multi-process applications
294294
void update_multi_process_params();
295-
295+
void fixup_params();
296296
char *app_name;
297297
char app_id[MAX_APP_ID_LENGHT];
298298

0 commit comments

Comments
 (0)