Thread work load assignment change.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2491 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jlin16 2007-03-20 09:45:50 +00:00
parent 9cc655d5a9
commit 21801bb353
1 changed files with 3 additions and 3 deletions

View File

@ -863,7 +863,7 @@ public class FpdFrameworkModules extends IInternalFrame {
int moduleCount = jTableFpdModules.getRowCount();
int start = 0;
for (int i = 0; i < FpdFrameworkModules.pcdSyncThreadNumber; ++i) {
int end = start + moduleCount/FpdFrameworkModules.pcdSyncThreadNumber;
int end = start + moduleCount/FpdFrameworkModules.pcdSyncThreadNumber + 1;
if (end > moduleCount) {
end = moduleCount;
}
@ -871,12 +871,12 @@ public class FpdFrameworkModules extends IInternalFrame {
start = end;
}
for (int i = 0; i < FpdFrameworkModules.pcdSyncThreadNumber; ++i) {
for (int i = 0; i < vThreads.size(); ++i) {
vThreads.get(i).start();
}
try {
for (int i = 0; i < FpdFrameworkModules.pcdSyncThreadNumber; ++i) {
for (int i = 0; i < vThreads.size(); ++i) {
vThreads.get(i).join();
}
}