2009/4/20 Igor Stasenko <siguctua@gmail.com>:
Another thing, that i think it would be better is to not have an instance side methods. Since we never need a multiple instances of InputEventFetcher in system, then instead of singleton scheme, it would be better to move all methods and ivars to class side - simply because a class is already singleton. This will help to avoid discrepancies, like we just met.
Thinking a bit more about it.. It could stay separated (instance/class side). But there are two things is missing IMO: - reinstalling a new event fetcher should preserve the list of handlers - an access to collection of eventHandlers should be guarded by semaphore, because there could be a concurrency issues when one process handling an event, while another one trying to install new event handler to same collection. maybe more appropriate would be to remove startup/shutdown methods from event fetcher, and merge things in InputEventSensor, to make sure everything is ok , and sensor always speaking with currently installed event fetcher.
2009/4/20 Igor Stasenko <siguctua@gmail.com>:
2009/4/20 Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com>:
2009/4/20 Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com>
... unless... I tried this in windows: (SmalltalkImage current vmVersion. -> 'Squeak3.10.2 of ''5 June 2008'' [latest update: #7179]')
InputEventFetcher deinstall; install. InputEventFetcher default. -> an InputEventFetcher
It seems to work like a charm, doesn't that mean that VM IS SIGNALLING the inputSemaphore?
Err, I did not installEventSensorFramework
InputEventFetcher deinstall. InputEventSensor installEventSensorFramework.
... and the image become unresponsive
i had some problems with reinstalling event fetcher too. Let's wait for Mike, to show us the proper doits for reinstalling event fetching process.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.
-- Best regards, Igor Stasenko AKA sig.
-- Best regards, Igor Stasenko AKA sig.