Anders Gustafsson | 24 Jan 12:59

Re: PATCH/RFC better mainloop


Michael Gao wrote:
> One way would be to set up a timer on client side to be responsible for
> calling cb_prepare, upon return of this callback, timer handle sends
> server the right request (want_in/want_out), then server starts to poll
> the right fd, then server sends an event to client to call the right
> call back there. This creates an extra timer and I am not sure how
> 'real-time' response this can get us.

There actually already is stuff in the xmms2 api for handling
prepare-less mainloops, so it should be possible to do in a quite clean way.

>> Oh, I happen to have an example here :)
>> http://people.0x63.nu/~andersg/nw-xmms2.c.txt
> I am wondering when we can have this example as part of the formal OSD
> release. ;-)

Just a little teaser;

Well, my osdmain already have a "Music playlist" entry in the main menu,
which shows the playlist from xmms2, and updates it correctly when other
clients change it. It also shows the currently playing song in the
statusbar (I did this change to the statusbar:
http://people.0x63.nu/~andersg/statusbar.patch.txt do you think that is
a good idea? To let different stuff write to it. I was thinking about
adding some kind of timeout, so it would be possible to say "show this
text for 20 seconds". Is there other components that could be interested
in showing status, so it would be worthwhile? )

But the communication with xmms2 depends on a better mainloop. So as
soon as that has been resolved I can start feeding more fun patches.

Hopefully I will have time to look into the mainloop stuff sometime
during the next few days.

 anders

--~--~---------~--~----~------------~-------~--~----~
FOR REALTIME DISCUSSION GO TO IRC #neuros on freenode

You received this message because you are subscribed to the Google Groups "Neuros-DM320" group.
To post to this group, send email to Neuros-DM320Hardware <at> googlegroups.com
To unsubscribe from this group, send email to Neuros-DM320Hardware-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/Neuros-DM320Hardware
-~----------~----~----~----~------~----~------~--~---


Gmane