Re: Tasking and wxWidgets



Lucretia wrote:
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.

Only if they lock and then do something slow or if you have loads of tasks all queue on the same lock.



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.

You won't need a preprocessor (although GNAT does have one 'gnatprep') - same spec, different bodies.


-- Spec
procedure Foo;

-- Body
procedure Foo is null;

Cheers

-- Martin
.