updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / firefox2 / firefox-bug-380558-arch.patch
blob1236ff2aad08c3724879a5527a430b953349b099
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
3 @@ -123,12 +123,8 @@
4 return NS_OK;
7 -#define CONDITION_WAIT_TIME PR_TicksPerSecond() / 4
8 -
9 void nsCertVerificationThread::Run(void)
11 - const PRIntervalTime wait_time = CONDITION_WAIT_TIME;
13 while (PR_TRUE) {
15 nsBaseVerificationJob *job = nsnull;
16 @@ -139,7 +135,7 @@
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);
24 if (mExitRequested)
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
27 @@ -386,6 +386,8 @@
29 close_later = PR_TRUE;
30 ssl_thread_singleton->mSocketScheduledToBeDestroyed = si;
32 + PR_NotifyAllCondVar(ssl_thread_singleton->mCond);
36 @@ -875,8 +877,7 @@
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);