[Vala] Async wrt. GLib, but sync wrt. DBus



Hi,

in one of my programs, I'd like serialize serving dbus calls,
however i need to be async in-between. Right now this does not
work, since whenever I'm returning control to the mainloop, any
pending dbus methods will be accepted and my server methods will
be reentered although they're not finished.

Then again, I can't be completely sync since I want to call
several other dbus servers in-between (acting as client) my
server implementation.

Is there a way to temporarily block dbus dispatching while
my async method waits for completion?

Or is there a completely different -- better -- way to handle
this?

Cheers,

:M:





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