[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Out-of-memory error when using multiple threads
From:       "Olivier Hochreutiner" <olivier.hochreutiner () gmail ! com>
Date:       2007-12-30 21:26:06
Message-ID: f967eaa30712301326k7397e6feo370cb32a90b50b28 () mail ! gmail ! com
[Download RAW message or body]

>
> Is this the same as the "Phantom Out of Memory error" problem here:
> http://lists.freedesktop.org/archives/dbus/2007-July/thread.html#8144

Yes indeed, I didn't notice. Sorry for the dupe.

>
> Another lock is expensive and complex, it would be better to avoid it if
> we can - the earlier thread has a few suggested alternatives.

I looked at the thread of last July. One of your proposals is to just
keep the connection lock when doing the callbacks, with the
restriction that no dbus function using the connection can be called
in the user code, or it would deadlock. I guess we could even get rid
this restriction if the connection lock is made reentrant, but that
would be risky I guess. I tried to just keep the lock and it does
solve my problem, but it might break other bindings.
So which solution among those detailed in the earlier thread would you
recommend ? (that is, which one can I write a patch for ? ;)

Best,

Olivier
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic