mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 10:54:33 +00:00

This patch finally breaks up forwarding received RIL messages to the main thread before they go to the RIL worker. Any RIL message that is received on th I/O thread is forwarded directly to the RIL worker thread and handed over to the RIL worker JS code. The patch includes a number of changes. They all depend on each other, so there's no good way of landing them one-by-one. * |RilConsumer| now runs on the RIL worker thread. * |RilWorker| uses tasks to register/unregister |RilConsumer| in the worker. * |RilConsumer| uses |RilSocket| instead of |StreamSocket|. * With |RilSocket|, received RIL messages do not go through main. They are forwared to the RIL worker and handed over to JS immediately.