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: Guillaume Schmid
Subject: Re: [paragui-users] Puzzled newbie question
Date: 29 Apr 2002 18:46:18 +0200

Le lun 29/04/2002 à 18:30, Alexander Pipelka a écrit :

> > Is there any cases where the second level on locking is mandatory ?
> 
> Sure.
> Think of multithreaded apps sending messages to widgets and it's parent
> in parallel (I know, rare cases. But possible).
> 
OK, I did not get all this message stuff yet. It is possible to send
message outside the event loop and it does bypass the ProcessEvent using
a message system.


> What about this:
> 
> 1 - event occurs - widget gets locked
> 
> 2 - message handler wants to delete the handling object (this) and calls
> delete
> 
> 3 - delete operator checks if we are locked and sets a flag. widget will
> not be deleted
> 
> 4 - widget gets unlocked - handler checks for delete flag and calls
> delete
If it works, sounds good for me!

> 
> For the 1.1.x branch i want to find a better solution. I will think
> about that refcounting thing.
I read in an archive that you want to use libsigc++ for the messaging
system. Will you keep the event loop separated from the messaging system
or will you integrate event managing with messages ?

Anyways, thanks again for your help !


a++
Guillaume.





reply via email to

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