bug 59526

sr=waterson
r=valeski

This bullet-proofs the code so the one thread does not exit twice.


git-svn-id: svn://10.0.0.236/trunk@82513 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2000-11-09 23:49:57 +00:00
parent e133c0a16e
commit c692199dd2

View File

@@ -101,6 +101,12 @@ nsThread::Exit(void* arg)
{
nsThread* self = (nsThread*)arg;
self->mDead = PR_TRUE;
if (self->mDead) {
NS_ERROR("attempt to Exit() thread twice");
return;
}
PR_LOG(nsIThreadLog, PR_LOG_DEBUG,
("nsIThread %p exited\n", self));
NS_RELEASE(self);