mirror of https://github.com/acidanthera/audk.git
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:
parent
9cc655d5a9
commit
21801bb353
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue