summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-11 07:39:08 +0000
committerwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-11 07:39:08 +0000
commit7dd2b2ad65b407a2d37c2a469498cbc4c3a13bad (patch)
tree94e105089442f90fc4313c087972180259ad7548 /Tools
parentd039f539ae04f059201e1ef7516e53c0bd45d030 (diff)
downloadedk2-platforms-7dd2b2ad65b407a2d37c2a469498cbc4c3a13bad.tar.xz
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1509 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java
index bb477f031e..fc5ebbf3dc 100644
--- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java
+++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java
@@ -299,6 +299,8 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes
// Call compress
//
byte[] fileBuffer = bo.toByteArray();
+
+ synchronized (CompressSection.semaphore) {
Compress myCompress = new Compress(fileBuffer, fileBuffer.length);
//
@@ -349,6 +351,7 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes
size ++;
buffer.writeByte(0);
}
+ }
}
catch (Exception e){
throw new BuildException("compress.toBuffer failed!\n");