Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: nss/mozilla/security/nss/lib/util/nssilock.c

Issue 3135002: Update to NSS 3.12.7 and NSPR 4.8.6.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* ***** BEGIN LICENSE BLOCK ***** 1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 * 3 *
4 * The contents of this file are subject to the Mozilla Public License Version 4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with 5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at 6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/ 7 * http://www.mozilla.org/MPL/
8 * 8 *
9 * Software distributed under the License is distributed on an "AS IS" basis, 9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 PRIntervalTime callTime, 118 PRIntervalTime callTime,
119 PRIntervalTime heldTime, 119 PRIntervalTime heldTime,
120 void *lock, 120 void *lock,
121 PRIntn line, 121 PRIntn line,
122 char *file 122 char *file
123 ) { 123 ) {
124 PRInt32 idx; 124 PRInt32 idx;
125 struct pzTrace_s *tp; 125 struct pzTrace_s *tp;
126 126
127 RetryTrace: 127 RetryTrace:
128 idx = PR_AtomicIncrement( &traceIndex ); 128 idx = PR_ATOMIC_INCREMENT( &traceIndex );
129 while( NUM_TT_ENTRIES <= idx || op == FlushTT ) { 129 while( NUM_TT_ENTRIES <= idx || op == FlushTT ) {
130 if( NUM_TT_ENTRIES == idx || op == FlushTT ) { 130 if( NUM_TT_ENTRIES == idx || op == FlushTT ) {
131 int writeSize = idx * sizeof(struct pzTrace_s); 131 int writeSize = idx * sizeof(struct pzTrace_s);
132 PR_Lock(ttLock); 132 PR_Lock(ttLock);
133 PR_Write( ttfd, tt, writeSize ); 133 PR_Write( ttfd, tt, writeSize );
134 traceIndex = -1; 134 traceIndex = -1;
135 PR_NotifyAllCondVar( ttCVar ); 135 PR_NotifyAllCondVar( ttCVar );
136 PR_Unlock(ttLock); 136 PR_Unlock(ttLock);
137 goto RetryTrace; 137 goto RetryTrace;
138 } else { 138 } else {
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 521
522 callTime = PR_IntervalNow(); 522 callTime = PR_IntervalNow();
523 rc = PR_NotifyAll( mon->mon ); 523 rc = PR_NotifyAll( mon->mon );
524 callTime = PR_IntervalNow() - callTime; 524 callTime = PR_IntervalNow() - callTime;
525 Vtrace( NotifyAll, mon->ltype, callTime, 0, mon, line, file ); 525 Vtrace( NotifyAll, mon->ltype, callTime, 0, mon, line, file );
526 return( rc ); 526 return( rc );
527 } /* --- end pz_NotifyAll() --- */ 527 } /* --- end pz_NotifyAll() --- */
528 528
529 #endif /* NEED_NSS_ILOCK */ 529 #endif /* NEED_NSS_ILOCK */
530 /* --- end nssilock.c --------------------------------- */ 530 /* --- end nssilock.c --------------------------------- */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698