paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] Puzzled newbie question


From: Andrew Ford
Subject: Re: [paragui-users] Puzzled newbie question
Date: Mon, 29 Apr 2002 10:43:47 -0700 (PDT)

&^*#&*$ Canada Post broke my trusty little smp celeron
:(

There are a couple of things I've been wondering
about.
When you're pumping things into the event queue for
transport between widgets, isn't this introducing a
lot of latency, and therefore taking the "snap" out of
what should be a very responsive gui?  I guess this
won't be the case when we switch over to libsig++...
About thread safety, what happens if a user-defined
widet does something like requests a blit or a sound
in an event handler?  Locking every widget every time
seems like a heavy-weight concurrency solution for a
problem that likely won't be run into very often.  Is
high multi-threaded performance that critical?  I
don't think I'd want my application calling the gui
from a large number of threads anyway.  There are
alternatives like locking the gui for a single thread
at a time, or optionally running the gui in its own
thread and having asynchronous communication between
it and the rest of the app (although this would
probably be full of latency).  Locking isn't that
cheap as far as I know, and having a mutex for every
widget probably adds up to a fair amount of memory, is
this true?
  I'm willing to take a look at reference counters and
make a proposal if you like (I know I still owe you
something for PG_FileArchive, I've been meaning to get
to it :) )

Andrew.

--- Alexander Pipelka <address@hidden> wrote:
> Am Mon, 2002-04-29 um 19.16 schrieb Andrew Ford:
> > I can imagine it would be pretty worthwhile to
> have a
> > good discussion about it for 1.1 :)  I can imagine
> me
> > helping out if I could be useful, too, heheh.
> 
> Ok. Got you :))
> I'll wrap up a draft and post it for discussion.
> 
> >   Has anyone examined the thread safety of SDL
> since
> > we're trying to call event handling functions and
> so
> > on from different threads here?
> 
> I had some apps pumping events to the queue from
> different threads. No
> problem. Sam always says that the SDL eventqueue is
> the *only* part that
> is really thread safe.
> 
> But i didn't have a chance to check that on an SMP
> machine, ...
> 
> Alex
> 
> 
> 
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
>
http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]