1 --- security/manager/ssl/src/nsCertVerificationThread.cpp 2006-04-14 02:07:18.000000000 +0400
2 +++ security/manager/ssl/src/nsCertVerificationThread.cpp.new 2007-05-15 17:03:21.000000000 +0400
7 -#define CONDITION_WAIT_TIME PR_TicksPerSecond() / 4
9 void nsCertVerificationThread::Run(void)
11 - const PRIntervalTime wait_time = CONDITION_WAIT_TIME;
15 nsBaseVerificationJob *job = nsnull;
17 while (!mExitRequested && (0 == verification_thread_singleton->mJobQ.GetSize())) {
18 // no work to do ? let's wait a moment
20 - PR_WaitCondVar(mCond, wait_time);
21 + PR_WaitCondVar(mCond, PR_INTERVAL_NO_TIMEOUT);
25 --- security/manager/ssl/src/nsSSLThread.cpp 2006-09-07 22:39:48.000000000 +0400
26 +++ security/manager/ssl/src/nsSSLThread.cpp.new 2007-05-15 17:04:35.000000000 +0400
29 close_later = PR_TRUE;
30 ssl_thread_singleton->mSocketScheduledToBeDestroyed = si;
32 + PR_NotifyAllCondVar(ssl_thread_singleton->mCond);
38 // no work to do ? let's wait a moment
40 - PRIntervalTime wait_time = PR_TicksPerSecond() / 4;
41 - PR_WaitCondVar(mCond, wait_time);
42 + PR_WaitCondVar(mCond, PR_INTERVAL_NO_TIMEOUT);
45 } while (!pending_work && !mExitRequested && !mSocketScheduledToBeDestroyed);