Re: event handling synchronization

"Patrick Goldsack" <[email protected]>
Newsgroups gmane.comp.java.smartfrog.devel
Organization Hewlett-Packard
Message-ID <[email protected]>
Andreas,

I don't understand. Are you saying that a synchronized event handler is not 
serializing the handling of the events?

The model is that events are given to a component using the public 
synchronized method "event", which internally calls handleEvent (which can 
be overridden to provide specific handling) and this has no need to be 
synched as it should only be called from within event (Why it is public I do 
not recall - this is probably an error.)

It baffles me how the handling can be interleaved unless you are using 
threading within the handler and releasing the lock on event before the 
internal threading has completed.

Patrick


----- Original Message ----- 
From: "Andreas Unterkircher" <[email protected]>
To: <smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Tuesday, May 24, 2005 10:02 AM
Subject: [Smartfrog-developer] event handling synchronization


>
> I'm using EventPrim's handleEvent method to receive/handle events. Now I
> want this to be synchronized, i.e. I receive many events at the same time
> but I want to have them treated one after the other. My first naive
> attempt to get this was to declare my own "public void synchronized
> myEventHandler" method which gets called by "public void handleEvent" but
> this did not help, i.e. the events get handled concurrently (better:
> interleaved ?). Now I'm thinking of implementing my own work queue. Before
> doing this I'd like to ask if SmartFrog already has some built in support
> for the above problem ? Maybe I'm just missing something ?
>
> Thanks,
> Andreas
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> Smartfrog-developer mailing list
> Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
> 



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.