remove Sync requirement from NotificationHandler#167
remove Sync requirement from NotificationHandler#167BillyDM wants to merge 3 commits intoRustAudio:mainfrom
Conversation
|
Also, I made |
|
I'll have to double check that this is valid. If this is not valid, then you will probably have to use a |
|
I have also stumbled over this. |
Due to #104 I made a small test function: fn thread_init(&self, _: &Client) {
info!("thread_init enter {:?}", thread::current().id());
thread::sleep(Duration::from_secs(1));
info!("thread_init exit {:?}", thread::current().id());
}..which gives the following output: .. which reveals two threads (7 and 8) to be running
I think the #121 findings should be investigated thoroughly before concluding that only a single method of the The findings also makes me wonder whether it is safe to have And in general I think the point that jack has 2 (or is pipewire a 3rd?) implementations also needs to be considered. |
|
+1 to @xkr47. I think its fine to support Who knows when I'll get time for this but, roughly
|
|
Sorry for not going into @BillyDM's original question earlier; I use |
|
@xkr47 do you think that the original issue is still a problem because i can use std::mpsc::senders in notification handlers directly: https://github.com/crop2000/jack_notifications_rs/blob/ea1e57ea7d2a62c36a96dd0bd01b5956ba0ba267/src/lib.rs#L128 |
The
Syncrequirement onNotificationHandleris unecessary, and it is preventing me from storing anmpsc::Senderin my struct.