Added a test to check the # of threads iff threading is enabled. If it's not enabled, don't try to read the number of threads in the target.txt file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1711 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lhauch 2006-10-10 17:30:59 +00:00
parent df682ead55
commit e2f34bcdaf
1 changed files with 4 additions and 1 deletions

View File

@ -375,7 +375,10 @@ public class FrameworkBuildTask extends Task{
}
str = getValue(ToolDefinitions.TARGET_KEY_MAX_CONCURRENT_THREAD_NUMBER, targetFileInfo);
if (str != null ) {
//
// Need to check the # of threads iff multithread is enabled.
//
if ((multithread) && (str != null )) {
try {
int threadNum = Integer.parseInt(str);
if (threadNum > 0) {