dbus performance information

LRN lrn1986 at gmail.com
Thu Mar 20 17:32:37 PDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21.03.2014 0:25, David Zeuthen wrote:
> On Thu, Mar 20, 2014 at 12:11 PM, Simon McVittie wrote:
> 
>> but that reimplementation wouldn't necessarily look much like
>> D-Bus any more.
>> 
> 
> The implementation I sketched above (D-Bus + win32-HANDLE-passing)
> would look as much as D-Bus as D-Bus + unix-fd-passing does. But,
> sure, the program would need to have #ifdefs for whether to use
> GUnixFDList or GWin32HandleList.

Why not just re-use the unix-fd-passing interface for CRT FDs?
I mean, you can _get_osfhandle() on a FD, pass the handle, then
_open_osfhandle() on the other end, and pretend that the FD you get
from it actually came like that. It will not have the same value as
the original (and duping it may not always work if it's already
taken), but otherwise it should work. More importantly, it will have
the same interface as UNIX fd passing.

Not that there shouldn't be a W32-specific interface, mind you.
- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJTK4iMAAoJEOs4Jb6SI2CwCPgH/0LIs7tO3TFt+1ai3TyvvxAB
ByJJ9UZ6X70y32THJ2UwMBFmOQ8a6mxQ/p/45zTkq0kOUBUFVc+jGLQHz9HsOz5g
k9D5/cDOiegYiuvEKSypKX5SeAlXvZBN5qq+V0OTDWOokt357e2FUAQPtZbA7CCn
G/2+Ybg0ueh1ZksoKqinDT3f/3KLqSjwrimv3LnFLw1B0fyQp3wNntEuzRDXVAK6
zn57TTTqPq4ruqckecCNBJ4zwx4sjGhrztrWH3+5Q/9SqciuM6Oxk5Eh/mIhk7dU
Qf34srU0uKfMbv5IsPVpZTogTsg6TU1WzloHFHZobkEzZ9lgvV025J1O/y3f4x0=
=naqU
-----END PGP SIGNATURE-----


More information about the dbus mailing list