SWITCH_DECLARE(const char *)switch_version_full(void);
SWITCH_DECLARE(const char *)switch_version_full_human(void);
+SWITCH_DECLARE(void) switch_core_autobind_cpu(void);
+
SWITCH_END_EXTERN_C
#endif
/* For Emacs:
return NULL;
}
+ switch_core_autobind_cpu();
+
while(conference_utils_member_test_flag(member, MFLAG_RUNNING)) {
if (switch_queue_pop(member->mux_out_queue, &pop) == SWITCH_STATUS_SUCCESS) {
mcu_layer_t *layer = NULL;
return x;
}
-static void bind_cpu(void)
+SWITCH_DECLARE(void) switch_core_autobind_cpu(void)
{
- switch_core_thread_set_cpu_affinity(next_cpu());
+ if (video_globals.cpu_count > 1) {
+ switch_core_thread_set_cpu_affinity(next_cpu());
+ }
}
return NULL;
}
- bind_cpu();
+ switch_core_autobind_cpu();
if ((var = switch_channel_get_variable(session->channel, "core_video_blank_image"))) {
blank_img = switch_img_read_png(var, SWITCH_IMG_FMT_I420);