mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 482938. nsPipe should create and destroy monitors using nsAutoMonitor so the potential-deadlock detector doesn't get confused. r=bsmedberg
--HG-- extra : rebase_source : 76fca82ad7015f55fb09e30d282f3dedf0c3976b
This commit is contained in:
parent
ef535464ab
commit
98e0044197
@ -330,7 +330,7 @@ nsPipe::nsPipe()
|
||||
nsPipe::~nsPipe()
|
||||
{
|
||||
if (mMonitor)
|
||||
PR_DestroyMonitor(mMonitor);
|
||||
nsAutoMonitor::DestroyMonitor(mMonitor);
|
||||
}
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsPipe, nsIPipe)
|
||||
@ -342,7 +342,7 @@ nsPipe::Init(PRBool nonBlockingIn,
|
||||
PRUint32 segmentCount,
|
||||
nsIMemory *segmentAlloc)
|
||||
{
|
||||
mMonitor = PR_NewMonitor();
|
||||
mMonitor = nsAutoMonitor::NewMonitor("pipeMonitor");
|
||||
if (!mMonitor)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user