mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-01 12:03:08 +00:00
Bug 1603153 throw an exception from nsThread::GetPRThread() when there is no PRThread r=froydnj
as is done in LazyIdleThread::GetPRThread(). Differential Revision: https://phabricator.services.mozilla.com/D56826 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
b7a5c8548a
commit
da14646552
@ -776,8 +776,9 @@ nsThread::IsOnCurrentThreadInfallible() {
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsThread::GetPRThread(PRThread** aResult) {
|
||||
*aResult = mThread;
|
||||
return NS_OK;
|
||||
PRThread* thread = mThread; // atomic load
|
||||
*aResult = thread;
|
||||
return thread ? NS_OK : NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
x
Reference in New Issue
Block a user