anr: don't create for anr dialogs (#12601)

This commit is contained in:
Luke Barkess 2025-12-14 17:19:35 +00:00 committed by GitHub
parent 05ccbb2f2d
commit 6535ff07c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 5 deletions

View file

@ -147,6 +147,10 @@ bool CAsyncDialogBox::isRunning() const {
return m_readEventSource;
}
pid_t CAsyncDialogBox::getPID() const {
return m_dialogPid;
}
SP<CAsyncDialogBox> CAsyncDialogBox::lockSelf() {
return m_selfWeakReference.lock();
}

View file

@ -26,6 +26,7 @@ class CAsyncDialogBox {
SP<CPromise<std::string>> open();
void kill();
bool isRunning() const;
pid_t getPID() const;
SP<CAsyncDialogBox> lockSelf();
@ -51,4 +52,4 @@ class CAsyncDialogBox {
// WARNING: cyclic reference. This will be removed once the event source is removed to avoid dangling pointers
SP<CAsyncDialogBox> m_selfReference;
WP<CAsyncDialogBox> m_selfWeakReference;
};
};