]> git.proxmox.com Git - mirror_edk2.git/commitdiff
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1509 6f19259b...
authorwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 11 Sep 2006 07:39:08 +0000 (07:39 +0000)
committerwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 11 Sep 2006 07:39:08 +0000 (07:39 +0000)
Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java

index bb477f031e2f518302b2578e764becc015f08a5c..fc5ebbf3dc740048fac917081217ae8108c6a3f9 100644 (file)
@@ -299,6 +299,8 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes
                 //  Call compress\r
                 //\r
                 byte[] fileBuffer = bo.toByteArray();\r
+                \r
+                synchronized (CompressSection.semaphore) {\r
                 Compress myCompress = new Compress(fileBuffer, fileBuffer.length);            \r
                 \r
                 //\r
@@ -349,6 +351,7 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes
                     size ++;\r
                     buffer.writeByte(0);\r
                 }\r
+                }\r
             }\r
             catch (Exception e){\r
                 throw new BuildException("compress.toBuffer failed!\n");\r