Skip to content
Prev Previous commit
Next Next commit
Readd autoDeleteApcReferences
  • Loading branch information
LeonarddeR committed May 31, 2023
commit e7a93e29a3162b85308346896bdb864d2611b104
11 changes: 11 additions & 0 deletions source/hwIo/ioThread.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,17 @@ def start(self):
super().start()
self.handle = ctypes.windll.kernel32.OpenThread(winKernel.THREAD_SET_CONTEXT, False, self.ident)

if apcsWillBeStronglyReferenced:
Comment thread
seanbudd marked this conversation as resolved.
Outdated
@contextmanager
def autoDeleteApcReference(self, apcUuid):
log.warning(
"IoThread.autoDeleteApcReference is deprecated. "
"It was never meant to be part of the public API. "
"This method will be removed in NVDA 2024.1. "
"Up until that version, it behaves as a no-op, i.e. a context manager yielding nothing."
)
yield

def _registerToCallAsApc(
self,
func: ApcT,
Expand Down