- Timestamp:
- May 22, 2009 9:19:33 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/vboxapi.py
r19900 r19902 128 128 return obj.__getattr__(field) 129 129 130 def initPerThread(self): 131 import pythoncom 132 # or with pythoncom.COINIT_APARTMENTTHREADED? 133 pythoncom.CoInitializeEx() 134 135 def deinitPerThread(self): 136 import pythoncom 137 pythoncom.CoUninitialize() 138 130 139 131 140 class PlatformXPCOM: … … 156 165 def getArray(self, obj, field): 157 166 return obj.__getattr__('get'+field.capitalize())() 167 168 def initPerThread(self): 169 pass 170 171 def deinitPerThread(self): 172 pass 158 173 159 174 class PlatformWEBSERVICE: … … 189 204 def getArray(self, obj, field): 190 205 return obj.__getattr__(field) 191 206 207 def initPerThread(self): 208 pass 209 210 def deinitPerThread(self): 211 pass 192 212 193 213 class SessionManager: … … 226 246 if hasattr(self, "vbox"): 227 247 del self.vbox 248 249 def initPerThread(self): 250 self.platform.initPerThread() 251 252 def deinitPerThread(self): 253 self.platform.deinitPerThread()
Note:
See TracChangeset
for help on using the changeset viewer.