зеркало из https://github.com/mozilla/gecko-dev.git
updated the nsSupportsArray::Count() api usage
This commit is contained in:
Родитель
7b9c361abe
Коммит
9750b0449d
|
@ -292,7 +292,8 @@ SerialReadTest(char* dirName)
|
|||
gVolume = 0;
|
||||
|
||||
// now that we've forked all the async requests, wait until they're done
|
||||
PRUint32 threadCount = threads->Count();
|
||||
PRUint32 threadCount;
|
||||
rv = threads->Count(&threadCount);
|
||||
for (PRUint32 i = 0; i < threadCount; i++) {
|
||||
nsIThread* thread = (nsIThread*)(*threads)[i];
|
||||
thread->Join();
|
||||
|
@ -353,7 +354,8 @@ ParallelReadTest(char* dirName, nsIFileTransportService* fts)
|
|||
}
|
||||
|
||||
// now that we've forked all the async requests, wait until they're done
|
||||
PRUint32 threadCount = threads->Count();
|
||||
PRUint32 threadCount;
|
||||
rv = threads->Count(&threadCount);
|
||||
for (PRUint32 i = 0; i < threadCount; i++) {
|
||||
nsIThread* thread = (nsIThread*)(*threads)[i];
|
||||
thread->Join();
|
||||
|
|
Загрузка…
Ссылка в новой задаче