logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Locking: msg#00157

freedesktop.dbus

Subject: Re: Locking

Ross Burton wrote:
>Hi,
>
>I noticed the discussion on dispatch locking has fizzled out, and was
>wondering if:
>
>1) this would solve the deadlock where client calls server, and before
>server returns it makes a call back to client. Currently this times
>out.

It would solve half of the problem. Currently, IIRC, the server may
deadlock internally, which means the client times out.

The solution would allow the server not to deadlock internally. But
whether the two programs together deadlock or not is a matter of
implementation detail: whether the binding does a blocking wait with
dbus_send_message_with_reply_and_block or whether it uses an event loop.

If you've got both sides waiting on
dbus_send_message_with_reply_and_block, they'll deadlock.

The only solution to this, that I can see, is to add a DCOP-style tag to
the message, indicating that it is being processed in the context of a
method call.

>2) can I help test any patches? If the patches would fix this problem
>I'd really like to see it committed soon, as it means I don't have to
>wrap large amounts of code in g_idle_add().

Our first attempt at patching backfired. There are no new patches to be
tested yet.

--
Thiago José Macieira - thiago.macieira AT trolltech.com
Trolltech AS - Sandakerveien 116, NO-0402 Oslo, Norway

Attachment: pgpDONBS071wh.pgp
Description: PGP signature

_______________________________________________
dbus mailing list
dbus-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@xxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dbus



Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo