comp.lang.ada
 help / color / mirror / Atom feed
From: "Lucretia" <lucretia9@lycos.co.uk>
Subject: Re: Tasking and wxWidgets
Date: 26 Nov 2005 09:32:15 -0800
Date: 2005-11-26T09:32:15-08:00	[thread overview]
Message-ID: <1133019090.480779.116750@f14g2000cwb.googlegroups.com> (raw)
In-Reply-To: <4386eb3d$1_1@glkas0286.greenlnk.net>


Martin Dowie wrote:
> Lucretia wrote:
> > 2) I could also go the other way and inside the
> > wx.Base.Object.Object_Type (wxObject) provide a mutex object, such
> > that every call in wxAda would lock (on entry) and unlock (on exit)
> > thus providing thread safety if that particular object were accessed
> > via multiple tasks. The overhead of constructing/destructing a mutex
> > locker object, locking/unlocking the mutex object on every call would
> > be rather high and thus, would most probably slow the application
> > down to a crawl (although, not tested). Use of inlining might make
> > this nicer?
>
> Is the different between a response in 0.1 seconds and 0.15 seconds
> particularly noticable with a GUI? I'm guessing at the actual times but
> surely they are going to be very small (to the human eye), no?...

Well, yeah. It is unlikely that wxAda will be used within the embedded
sector, so it may not be that feasible, but I was wondering more about
the fact that there are a lot of calls in wxWidgets and that if every
call was blocking, it may end up being particularly slooow when
multiple tasks start to use the objects concurrently.

> Could you provide the locking as an option at compile time? I.e. have 2
> packages that providing locking but one is "begin null end;" (or "is null;"
> for Ada2005, yes?) for everything.

That would be a big job as there is no preprocessor for Ada (only GNAT
- and this lib is to be portable).

Yeah, there will be an Ada 2005 version after the Ada 95 version.

Luke.




  reply	other threads:[~2005-11-26 17:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-25 10:05 Tasking and wxWidgets Lucretia
2005-11-25 10:53 ` Martin Dowie
2005-11-26 17:32   ` Lucretia [this message]
2005-11-26 18:23     ` Martin Dowie
2005-11-29  3:07       ` Randy Brukardt
2005-11-29  9:13         ` Martin Dowie
2005-11-29 21:46           ` Randy Brukardt
2005-11-29 22:46             ` Martin Dowie
2005-11-25 11:37 ` Dmitry A. Kazakov
2005-11-26 17:26   ` Lucretia
2005-11-27 11:15     ` Dmitry A. Kazakov
2005-11-28 10:48       ` Lucretia
2005-11-28 14:41         ` Dmitry A. Kazakov
2005-11-26 17:26   ` Lucretia
2005-11-26 17:28   ` Lucretia
2005-11-26 17:34   ` Lucretia
2005-11-26  7:46 ` Simon Wright
2005-11-28 10:37   ` Lucretia
2005-11-29 21:38     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox