Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf62923c

Browse files
author
zhourenjian@gmail.com
committed
Synchronize on pipe object to initialize pipe data on #pipeCloneData
1 parent2dac2ea commitf62923c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎sources/net.sf.j2s.ajax/ajaxpipe/net/sf/j2s/ajax/SimplePipeHelper.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,8 @@ public static void pipeIn(String key, SimpleSerializable[] ss) {
222222
}
223223
}
224224
c.setCached(true);
225-
list.add(s);
226-
}else {
227-
list.add(s);
228225
}
226+
list.add(s);
229227
if (!hasNewPriority &&sinstanceofISimplePipePriority) {
230228
hasNewPriority =true;
231229
}

‎sources/net.sf.j2s.ajax/ajaxpipe/net/sf/j2s/ajax/SimplePipeRunnable.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,11 @@ protected void pipeCloneData(SimplePipeRunnable anotherPipe, SimpleFilter filter
246246
if (anotherPipe !=null &&anotherPipe.pipeData !=null &&anotherPipe.pipeData.size() >0) {
247247
if (pipeData ==null) {
248248
List<SimpleSerializable>data =newVector<SimpleSerializable>(anotherPipe.pipeData.size());
249-
pipeData =data;
249+
synchronized (this) {
250+
if (pipeData ==null) {
251+
pipeData =data;
252+
}
253+
}
250254
}
251255
synchronized (pipeData) {
252256
synchronized (anotherPipe.pipeData) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp