diff options
author | jlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-03-20 09:45:50 +0000 |
---|---|---|
committer | jlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-03-20 09:45:50 +0000 |
commit | 21801bb3530954ac80213c9084b6f702ddf9036b (patch) | |
tree | 88ddc329c163872fa96fbfe96b496fcbf0f375d0 /Tools/Java | |
parent | 9cc655d5a9221bd0178264d2d486dad4d35e0619 (diff) | |
download | edk2-platforms-21801bb3530954ac80213c9084b6f702ddf9036b.tar.xz |
Thread work load assignment change.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2491 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java')
-rw-r--r-- | Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java index b8eb8c682b..ae5fce8340 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java @@ -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();
}
}
|