mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
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 moduleCount = jTableFpdModules.getRowCount();
|
||||||
int start = 0;
|
int start = 0;
|
||||||
for (int i = 0; i < FpdFrameworkModules.pcdSyncThreadNumber; ++i) {
|
for (int i = 0; i < FpdFrameworkModules.pcdSyncThreadNumber; ++i) {
|
||||||
int end = start + moduleCount/FpdFrameworkModules.pcdSyncThreadNumber;
|
int end = start + moduleCount/FpdFrameworkModules.pcdSyncThreadNumber + 1;
|
||||||
if (end > moduleCount) {
|
if (end > moduleCount) {
|
||||||
end = moduleCount;
|
end = moduleCount;
|
||||||
}
|
}
|
||||||
@ -871,12 +871,12 @@ public class FpdFrameworkModules extends IInternalFrame {
|
|||||||
start = end;
|
start = end;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < FpdFrameworkModules.pcdSyncThreadNumber; ++i) {
|
for (int i = 0; i < vThreads.size(); ++i) {
|
||||||
vThreads.get(i).start();
|
vThreads.get(i).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (int i = 0; i < FpdFrameworkModules.pcdSyncThreadNumber; ++i) {
|
for (int i = 0; i < vThreads.size(); ++i) {
|
||||||
vThreads.get(i).join();
|
vThreads.get(i).join();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user