Merge branch 'feature/multi-message-threading' of github.com:mozilla/janus-plugin-sfu into feature/faster-publisher-lookup

This commit is contained in:
Greg Fodor 2020-04-04 19:28:03 +00:00
Родитель 13498f9ff5 d3e995b7d1
Коммит 5cfd16d8b4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -248,9 +248,9 @@ extern "C" fn init(callbacks: *mut PluginCallbacks, config_path: *const c_char)
Some(c) => {
unsafe { CALLBACKS = Some(c) };
let mut senders = Vec::new();
let cpus = if message_threads == 0 { num_cpus::get() } else { message_threads };
let num_threads = if message_threads == 0 { num_cpus::get() } else { message_threads };
for i in 0..cpus {
for i in 0..num_threads {
let (messages_tx, messages_rx) = mpsc::sync_channel(0);
senders.push(messages_tx.clone());