Merge branch 'feature/multi-message-threading' of github.com:mozilla/janus-plugin-sfu into feature/faster-publisher-lookup
This commit is contained in:
Коммит
5cfd16d8b4
|
@ -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());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче