[PATCH] dbus_message_{set,get}_timeout

Lucas C. Villa Real lucasvr at gobolinux.org
Tue Apr 28 10:55:22 PDT 2009


Hi all,

We're developing an embedded application around DBus and that involves
having some abstractions to send and receive messages, which may also
have different timeouts depending on various criteria. After some
thought around dbus_message_{set,get}_data() we found that it would be
cheaper (in cpu cycles) to have a simple int attached to each message
to specify their timeout. The function that abstracts send() then just
has to take that value out of the message and use it when sending that
message over the bus.

This proved to be a very useful interface for us, so we're sharing
those changes with you. Please feel free to give us feedback or merge
it should you find it useful too.

Regards,
Lucas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03-dbus_message_set_timeout.patch
Type: application/octet-stream
Size: 3199 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20090428/bfbf5b50/attachment-0001.obj 


More information about the dbus mailing list