@@ -208,6 +208,7 @@ def __init__(self, persistentStoragePath: str, installDefaultLogHandler=True,
208
208
bluetoothAdapter = None , enableServerInteractions = True ):
209
209
builtins .enableDebugMode = False
210
210
211
+ # TODO: Probably no longer necessary, see https://github.com/project-chip/connectedhomeip/issues/33321.
211
212
self .networkLock = Lock ()
212
213
self .completeEvent = Event ()
213
214
self .commissioningCompleteEvent = Event ()
@@ -348,6 +349,7 @@ def setLogFunct(self, logFunct):
348
349
logFunct = 0
349
350
if not isinstance (logFunct , _LogMessageFunct ):
350
351
logFunct = _LogMessageFunct (logFunct )
352
+ # TODO: Lock probably no longer necessary, see https://github.com/project-chip/connectedhomeip/issues/33321.
351
353
with self .networkLock :
352
354
# NOTE: ChipStack must hold a reference to the CFUNCTYPE object while it is
353
355
# set. Otherwise it may get garbage collected, and logging calls from the
@@ -390,6 +392,7 @@ def Call(self, callFunct, timeoutMs: int = None):
390
392
# throw error if op in progress
391
393
self .callbackRes = None
392
394
self .completeEvent .clear ()
395
+ # TODO: Lock probably no longer necessary, see https://github.com/project-chip/connectedhomeip/issues/33321.
393
396
with self .networkLock :
394
397
res = self .PostTaskOnChipThread (callFunct ).Wait (timeoutMs )
395
398
self .completeEvent .set ()
@@ -422,6 +425,7 @@ def CallAsyncWithCompleteCallback(self, callFunct):
422
425
# throw error if op in progress
423
426
self .callbackRes = None
424
427
self .completeEvent .clear ()
428
+ # TODO: Lock probably no longer necessary, see https://github.com/project-chip/connectedhomeip/issues/33321.
425
429
with self .networkLock :
426
430
res = self .PostTaskOnChipThread (callFunct ).Wait ()
427
431
0 commit comments