Changeset 94127 in vbox for trunk/src/VBox/ValidationKit/tests/serial/loopback.py
- Timestamp:
- Mar 8, 2022 2:44:28 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/serial/loopback.py
r93115 r94127 224 224 Shutdown any connection and wait for it to become idle. 225 225 """ 226 self.oLock.acquire(); 227 self.fShutdown = True; 228 self.oLock.release(); 226 with self.oLock: 227 self.fShutdown = True; 229 228 self.oIoPumper.shutdown(); 230 229 … … 233 232 Returns whether the I/O pumping thread should shut down. 234 233 """ 235 self.oLock.acquire(); 236 fShutdown = self.fShutdown; 237 self.oLock.release(); 234 with self.oLock: 235 fShutdown = self.fShutdown; 238 236 239 237 return fShutdown;
Note:
See TracChangeset
for help on using the changeset viewer.