Searched refs:MainThreadTxMessage (Results 1 – 2 of 2) sorted by relevance
118 MainThreadTxMessage::Callback(f) => f(&mut modules), in start()119 MainThreadTxMessage::Stop => { in start()132 enum MainThreadTxMessage { enum136 type MainThreadTx = mpsc::UnboundedSender<MainThreadTxMessage>;162 let ret = MAIN_THREAD_TX.with(|tx| tx.send(MainThreadTxMessage::Callback(Box::new(f)))); in do_in_rust_thread()
16 GlobalModuleRegistry, MainThreadTxMessage, GLOBAL_MODULE_REGISTRY,43 .map(|registry| registry.task_tx.send(MainThreadTxMessage::Stop)); in stop()