anr: don't create for anr dialogs (#12601)
This commit is contained in:
parent
05ccbb2f2d
commit
6535ff07c9
4 changed files with 15 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue