Author: remi
Date: 2009-03-13 19:18:22 +0100 (Fri, 13 Mar 2009)
New Revision: 4063
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/util/gadgets/Framework.py
Log:
* added a lock on the framework starting procedure
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/util/gadgets/Framework.py
===================================================================
--- software_suite_v2/tuxware/tuxdroidserver/trunk/util/gadgets/Framework.py
2009-03-13 17:30:17 UTC (rev 4062)
+++ software_suite_v2/tuxware/tuxdroidserver/trunk/util/gadgets/Framework.py
2009-03-13 18:18:22 UTC (rev 4063)
@@ -41,6 +41,7 @@
self.__locutor = "Ryan"
self.__pitch = 130
self.__gadgetsContainer = GadgetsContainer({})
+ self.__startMutex = threading.Lock()
#
--------------------------------------------------------------------------
# Start the gadget framework.
@@ -56,6 +57,7 @@
start the deployment of the gadgets directory.
"""
def async():
+ self.__startMutex.acquire()
self.__gadgetFramework.stop()
if self.__onFrameworkStoppedCallBack != None:
self.__onFrameworkStoppedCallBack()
@@ -75,6 +77,7 @@
self.__containerStart(gadgetsPath)
if self.__onFrameworkStartingCallBack != None:
self.__onFrameworkStartingCallBack()
+ self.__startMutex.release()
t = threading.Thread(target = async)
t.start()
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn