Re: gtkmm Monitoring IO example



Den 2015-09-25 kl. 20:44, skrev Sanne Ausma:
Thank for your answer, this was what I feared (I am on Linus btw).
Coming from a C background, I know there is a more efficient way of doing this.

I did figure out how to get the CPU load down without re-implementing it.
The only change I made to the example is the flags the call to open from O_RDONLY to O_RDWR.
The example works as expected but now without the high CPU load.

Should I report this somewhere?

Sanne


No, you don't have to report it. I have updated the input example in the git repository. I have replaced O_RDONLY by O_RDWR, like you did, and added a comment, explaining why it's necessary.

Thanks to Andrew Potter for the link to stackoverflow in
https://mail.gnome.org/archives/gtkmm-list/2015-September/msg00034.html

Kjell


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]