-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log #61
base: develop
Are you sure you want to change the base?
Log #61
Conversation
while this feature is not restricted to any threading class, i have some doubt about RT concern and threading issue
Ah this looks like the solution to #91. Could you add a usage example (perhaps in the dummy unit test)? |
sorry, this branch is far behind the rest of the main branch. I don't remember the details, but i stopped this branch because at the moment, there is no way to implement fully an properly in pure rust. If you need it to display some debug information during plugin development, you can use "println!" instead and run the host from a console. |
Thanks! |
Hi @YruamaLairba , do you still want to work on this PR? While I agree full realtime formatting support is not easy (and, in fact, may very well be the job of a whole separate crate), I believe a simple function that just sends a nul-terminated string as a log to the host would be quite useful already. We can add the formatting part later. 🙂 |
Lol, i read the Log spec API again, and in general, this should not be used in real-time context (does the doc have been updated ?). The only exception is for debugging purpose (trace) where messing real-time is not a concern. |
Yes, I agree, realtime formatting doesn't seem like a very big concern for now. ^^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll also do a quick review here, since you plan on continuing the work you may find this helpful 🙂
log/src/lib.rs
Outdated
use std::os::raw::*; //get all common c_type | ||
use urid::*; | ||
|
||
pub struct EntryClass; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having the entry types in a submodule (entries
for instance) would be a cleaner, although it's not a lot of code, it'll show up as quite a few types in the rustdoc and might be a bit overwhelming for new users that might want to focus elsewhere (mainly the Log
feature, or the entry type trait).
@prokopyl wait a minute, i just looked in again and it appear i have some unpushed work in my local dir. I will do a push force with my work on the top the develop branch for a cleaner git history. I also reminded a big interrogation i had about threading class of this feature. This feature is allowed in any non-realtime context, i think this implies the "worker" thread, but i really don't see how to implement that without messing the principle of separation of LV2 extension. |
32f35f8
to
fe6d8d7
Compare
Sorry, rebasing was a very bad idea, i didn't see the code wasn't compiling at all after therebase |
except documentation, i don't see what more i can do... |
@prokopyl have you an opinion on code i did? |
@YruamaLairba Yes! Sorry for the wait, I just did another review. 🙂 Also, don't bother with making extensive documentation for now, I'll merge this into a |
I think it's almost, it's only need documentation. I wouldn't do submodule, there is too few type in my opinion. |
I completed and reworked the documentation. I also removed the unsafety of the |
@prokopyl you may didn't see, i'm ready for a review since a while. |
I started to work on the log spec.