Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 182490
Collapse All | Expand All

(-)mozilla/security/manager/ssl/src/nsCertVerificationThread.cpp (-5 / +1 lines)
Lines 123-134 Link Here
123
  return NS_OK;
123
  return NS_OK;
124
}
124
}
125
125
126
#define CONDITION_WAIT_TIME PR_TicksPerSecond() / 4
127
  
128
void nsCertVerificationThread::Run(void)
126
void nsCertVerificationThread::Run(void)
129
{
127
{
130
  const PRIntervalTime wait_time = CONDITION_WAIT_TIME;
131
132
  while (PR_TRUE) {
128
  while (PR_TRUE) {
133
129
134
    nsBaseVerificationJob *job = nsnull;
130
    nsBaseVerificationJob *job = nsnull;
Lines 139-145 Link Here
139
      while (!mExitRequested && (0 == verification_thread_singleton->mJobQ.GetSize())) {
135
      while (!mExitRequested && (0 == verification_thread_singleton->mJobQ.GetSize())) {
140
        // no work to do ? let's wait a moment
136
        // no work to do ? let's wait a moment
141
137
142
        PR_WaitCondVar(mCond, wait_time);
138
        PR_WaitCondVar(mCond, PR_INTERVAL_NO_TIMEOUT);
143
      }
139
      }
144
      
140
      
145
      if (mExitRequested)
141
      if (mExitRequested)
(-)mozilla/security/manager/ssl/src/nsSSLThread.cpp (-2 / +3 lines)
Lines 386-391 Link Here
386
      
386
      
387
      close_later = PR_TRUE;
387
      close_later = PR_TRUE;
388
      ssl_thread_singleton->mSocketScheduledToBeDestroyed = si;
388
      ssl_thread_singleton->mSocketScheduledToBeDestroyed = si;
389
390
      PR_NotifyAllCondVar(ssl_thread_singleton->mCond);
389
    }
391
    }
390
  }
392
  }
391
393
Lines 875-882 Link Here
875
        {
877
        {
876
          // no work to do ? let's wait a moment
878
          // no work to do ? let's wait a moment
877
879
878
          PRIntervalTime wait_time = PR_TicksPerSecond() / 4;
880
         PR_WaitCondVar(mCond, PR_INTERVAL_NO_TIMEOUT);
879
          PR_WaitCondVar(mCond, wait_time);
880
        }
881
        }
881
        
882
        
882
      } while (!pending_work && !mExitRequested && !mSocketScheduledToBeDestroyed);
883
      } while (!pending_work && !mExitRequested && !mSocketScheduledToBeDestroyed);

Return to bug 182490