Yo so re: #activitydesk https://v2.jacky.wtf/post/5676a37b-b01b-4c0b-802f-d49969116b74
#rust #rustaceans if y'all got some experience with multi threading with the language lemme know cuz a brother is stumped and needs to do client work lol
Yo so re: #activitydesk https://v2.jacky.wtf/post/5676a37b-b01b-4c0b-802f-d49969116b74
#rust #rustaceans if y'all got some experience with multi threading with the language lemme know cuz a brother is stumped and needs to do client work lol
okay I expanded on it a bit more here https://github.com/blackaf/activitydesk/issues/2
@jalcine Does Qt let one plug pollable stuff into its main loop? You may be able to steal some techniques from here:
Motivation: https://coaxion.net/blog/2019/02/mpsc-channel-api-for-painless-usage-of-threads-with-gtk-in-rust/
Implementation: https://github.com/gtk-rs/glib/blob/master/src/main_context_channel.rs
TL;DR - have a channel be a bounded deque, with hooks into the main loop so the toolkit can ask it, "do you have events for me?". That implementation exposes a GSource for a GMainLoop; not sure what Qt uses.
@jalcine good luck!
Hmmm, you said it failed when sending. Do you know the exact error?