--
You received this message because you are subscribed to the Google Groups "chromium-mojo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-moj...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-mojo/CAHe_1d%2BoF9LEcbCNseu1KUMLsz6kBZEUUX4bhRbw7MxU6QES2g%40mail.gmail.com.
I don't believe there is any special handling really on the receiver side. They are essentially handled like an async message. If you require coordination on your service between the time you receive a message and when you call the callback (presumably you are doing something else while waiting on something) you'll have to build that yourself.
Dave--On Sat., Oct. 9, 2021, 3:46 a.m. Koji Ishii, <ko...@chromium.org> wrote:Hello chromium-mojo experts,--Could any experts here help us to figure out if/how mojo synchronizes multiple simultaneous calls?Renderer calls Windows DirectWrite functions using [sync] calls in dwrite_font_proxy.mojom. Its implementation, DWriteFontProxyImpl, has DirectWrite objects, and nobody should call them simultaneously.When multiple renderer processes call these mojo functions simultaneously, does the [sync] attribute serializes the requests and prevents calling DWriteFontProxyImpl functions simultaneously, or does DWriteFontProxyImpl need to synchronize by itself?
You received this message because you are subscribed to the Google Groups "chromium-mojo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-moj...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-mojo/CAHe_1d%2BoF9LEcbCNseu1KUMLsz6kBZEUUX4bhRbw7MxU6QES2g%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "chromium-mojo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-moj...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-mojo/CAHgVhZXQaCDwM3LC8V_1KuP%3Ds7ng4wHwdZpankM-Jm9Pu%2BX%3DpQ%40mail.gmail.com.
registry->AddInterface(base::BindRepeating(&DWriteFontProxyImpl::Create),base::ThreadPool::CreateSequencedTaskRunner({base::TaskPriority::USER_BLOCKING, base::MayBlock()}));
if (auto r = receiver.As<blink::mojom::DWriteFontProxy>()) {base::ThreadPool::CreateSequencedTaskRunner({base::TaskPriority::USER_BLOCKING, base::MayBlock()})->PostTask(FROM_HERE,base::BindOnce(&DWriteFontProxyImpl::Create, std::move(r)));return;}
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-mojo/CAHe_1d%2BQ7QRpxHYEgi590tpGJX7dJg9j1gGY%2BSMLGihT859_Wg%40mail.gmail.com.